test Package

test Package

test_symplehfsm Module

TODO: modul doc string

class test.test_symplehfsm.BaseStateTests(methodName='runTest')[source]

Bases: unittest.TestCase

setUp()[source]
test_add_child()[source]
test_add_child_and_initial()[source]
test_add_child_initial_only_once()[source]
test_add_returns_child()[source]
test_check_consistency_check_initial()[source]
test_check_consistency_check_initial_not_set()[source]
test_check_consistency_check_initial_wrong_parent()[source]
test_check_if_child_has_parent()[source]
test_child_has_not_parent_as_child()[source]
test_direct_child()[source]
test_has_direct_child()[source]
test_has_multiple_children()[source]
test_multiple_children()[source]
test_name_is_set()[source]
test_parent_is_not_child()[source]
test_parent_set_through_constructor()[source]
test_remove_child()[source]
test_remove_child_set_as_initial()[source]
test_remove_child_set_as_initial_exception()[source]
test_remove_child_set_as_initial_replacment_is_child()[source]
test_representation_is_string()[source]
test_self_hast_not_self_as_child()[source]
test_self_is_not_child()[source]
class test.test_symplehfsm.StructureOptimizationTests(methodName='runTest')[source]

Bases: unittest.TestCase

setUp()[source]
test_do_optimization_states()[source]
test_do_optimization_twice()[source]
test_do_optimization_with_transitions()[source]
class test.test_symplehfsm.StructureTests(methodName='runTest')[source]

Bases: unittest.TestCase

..todo: test _get_methodcalls() !!!!!

Tests the Structure class.

setUp()[source]
test_add_root()[source]
test_add_state()[source]
test_add_state_parent_unkown()[source]
test_add_transition_target_not_set()[source]
test_add_transition_to_unkown_state()[source]
test_add_transition_unkown_target()[source]
test_adding_second_root_raises_exception()[source]
test_adding_state_twice_raises_exception()[source]
test_adding_transition_same_event_twice_on_same_state_raises_error()[source]
test_adding_transitions()[source]
test_check_consistency_check_initial()[source]
test_check_consistency_check_initial_not_set()[source]
test_check_consistency_check_initial_wrong_parent()[source]
test_representation_is_string()[source]
test_that_name_is_set()[source]
class test.test_symplehfsm.SympleHFSMTests(methodName='runTest')[source]

Bases: unittest.TestCase

handle_unkown_event()[source]
setUp()[source]
test_calling_exit_multiple_times_does_not_matter()[source]
test_calling_handle_event_without_init_raises_exception()[source]
test_calling_init_after_exit_should_initialize_normally()[source]
test_calling_init_multifple_times_raises_error()[source]
test_exit_calls_exits()[source]
test_guard_false()[source]
test_guard_true()[source]
test_handle_event_during_action()[source]
test_handling_event_not_initialized()[source]
test_handling_unkonw_event()[source]
test_init_calls_entries()[source]
test_init_optimizedstructure()[source]
test_init_unoptimizedstructure()[source]
test_init_use_optimization_unoptimizedstructure()[source]
test_repr()[source]
test_set_state_currently_handling_event()[source]
test_set_state_normal()[source]
test_set_state_unkown_state()[source]
class test.test_symplehfsm.SympleHFSMTestsOptimized(methodName='runTest')[source]

Bases: test.test_symplehfsm.SympleHFSMTests

setUp()[source]
test_handle_event_during_action()[source]
test_init_use_optimization_optimizedstructure()[source]
test_init_use_optimization_unoptimizedstructure()[source]
class test.test_symplehfsm.SympleHFSMTransitionTests(methodName='runTest')[source]

Bases: unittest.TestCase

setUp()[source]
test_attributes()[source]
test_representation_is_string()[source]

Table Of Contents

Previous topic

testablestatemachines Package

Next topic

Todo

This Page