Exemplo n.º 1
0
 def test_nested_machine_events(self):
     states, trans = make_nested_machine(False)
     hsm = HSM(states, trans)
     event_set = get_events(hsm.flattened, trans)
     assert event_set == set([A, B, C, AB_ex, AC_ex, BC_ex, AB_loc, AC_loc,
                              BC_loc, BA_ex, CA_ex, CB_ex, BA_loc, CA_loc,
                              CB_loc])
Exemplo n.º 2
0
 def setup_class(self):
     states, trans = make_nested_machine(use_logging=False)
     self.hsm = HSM(states, trans)