Set of tests for checking Machine Base class
Definition at line 14 of file test_caf_machine.py.
◆ setUp()
Definition at line 19 of file test_caf_machine.py.
24 self.m.add_state(
"standing")
25 self.m.add_state(
"walking")
26 self.m.add_transition(
"walk",
"standing",
"walking")
27 self.m.add_transition(
"stop",
"walking",
"standing")
28 self.m.initial_state =
"standing"
◆ test_bad_set()
◆ test_false_condition()
def test_false_condition |
( |
|
self | ) |
|
Check that when a condition for a transition evaulates false it will raise
the correct error.
Definition at line 85 of file test_caf_machine.py.
◆ test_halftrue_conditions()
def test_halftrue_conditions |
( |
|
self | ) |
|
Check that when a single condition out of many for a transition evaulates true it will
fail to move to the correct state
Definition at line 117 of file test_caf_machine.py.
◆ test_initial()
Checks that a new machine sets an initial state correctly
Definition at line 30 of file test_caf_machine.py.
◆ test_set()
◆ test_true_condition()
def test_true_condition |
( |
|
self | ) |
|
Check that when a condition for a transition evaulates true it will transition
to the correct state
Definition at line 70 of file test_caf_machine.py.
◆ test_true_conditions()
def test_true_conditions |
( |
|
self | ) |
|
Check that when multiple conditions for a transition all evaulate true it will transition
to the correct state
Definition at line 100 of file test_caf_machine.py.
◆ test_walk()
◆ test_walk_stop()
def test_walk_stop |
( |
|
self | ) |
|
The documentation for this class was generated from the following file: