Set of tests for checking Machine Base class
Definition at line 7 of file test_caf_machine.py.
◆ setUp()
Definition at line 12 of file test_caf_machine.py.
17 self.m.add_state(
"standing")
18 self.m.add_state(
"walking")
19 self.m.add_transition(
"walk",
"standing",
"walking")
20 self.m.add_transition(
"stop",
"walking",
"standing")
21 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 78 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 110 of file test_caf_machine.py.
◆ test_initial()
Checks that a new machine sets an initial state correctly
Definition at line 23 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 63 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 93 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: