def test_full_definition(self): decl = base.on_enter_state('foo', 'bar', priority=3, field='st') self.assertEqual(3, decl.priority) self.assertEqual('st', decl.field) self.assertEqual(('foo', 'bar'), decl.names)
def test_definition_no_transition_name(self): decl = base.on_enter_state() self.assertEqual(0, decl.priority) self.assertEqual('', decl.field) self.assertEqual(('*',), decl.names)
def test_simple_definition(self): decl = base.on_enter_state('foo', 'bar') self.assertEqual(0, decl.priority) self.assertEqual('', decl.field) self.assertEqual(('foo', 'bar'), decl.names)