test Package

test Package

test_symplehfsm Module

TODO: modul doc string

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

Bases: unittest.TestCase

setUp()[source]
test_prove_one_transition_simple()[source]
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_if_child_has_parent()[source]
test_check_initial()[source]
test_check_initial_not_set()[source]
test_check_initial_wrong_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.StructureTests(methodName='runTest')[source]

Bases: unittest.TestCase

setUp()[source]
test_add_root()[source]
test_add_state()[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_representation_is_string()[source]
test_that_name_is_set()[source]
class test.test_symplehfsm.SympleHFSMTests[source]

This are the tests for the ‘SympleHFSM’ but not the normal usage!

See demos for proper usage!

class Actions[source]

Bases: object

class AEnum[source]

Bases: object

ACTION1 = 'ACTION1'
ACTION2 = 'ACTION2'
SympleHFSMTests.Actions.action1()[source]
SympleHFSMTests.Actions.action2()[source]
class SympleHFSMTests.Events[source]

Bases: object

a()[source]
b()[source]
class SympleHFSMTests.State1(name=None, parent=None)[source]

Bases: test.test_symplehfsm.StateEvents, symplehfsm.BaseState

a(context)[source]
b(context)[source]
entry(context)[source]
exit(context)[source]
reentrant_event(context)[source]
class SympleHFSMTests.State2(name=None, parent=None)[source]

Bases: test.test_symplehfsm.State1

a(context)[source]
class SympleHFSMTests.StateEvents[source]

Bases: object

a(context)[source]
b(context)[source]
SympleHFSMTests.match_order(expected, captured)[source]
SympleHFSMTests.setUp()[source]
SympleHFSMTests.test_exit_call_order()[source]
SympleHFSMTests.test_init_call_order()[source]
SympleHFSMTests.test_no_event_handling()[source]
SympleHFSMTests.test_raise_reentry_exception()[source]
SympleHFSMTests.test_set_state()[source]
SympleHFSMTests.test_transition_event_not_handled()[source]
SympleHFSMTests.test_transition_guard_false()[source]
SympleHFSMTests.test_transition_guard_true()[source]
SympleHFSMTests.test_transition_into_target_child_state()[source]
SympleHFSMTests.test_transition_normal()[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