Skip to content

Commit

Permalink
Merge 1b76e5f into 099dc38
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrow committed Mar 29, 2020
2 parents 099dc38 + 1b76e5f commit 3b5fd21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,12 @@ def test_initial_not_registered(self):
self.assertTrue(m1.is_C())
self.assertTrue('C' in m1.states)

def test_trigger_name_cannot_be_equal_to_model_attribute(self):
m = self.machine_cls(states=['A', 'B'])

with self.assertRaises(ValueError):
m.add_transition(m.model_attribute, "A", "B")


class TestWarnings(TestCase):
def test_warning(self):
Expand Down

0 comments on commit 3b5fd21

Please sign in to comment.