Placed tags tests in their own TestClass

This commit is contained in:
ChrisLR 2020-10-03 14:21:22 -04:00
parent 3ae626ea3a
commit ebcb4244aa

View file

@ -146,8 +146,10 @@ class TestTypedObjectManager(EvenniaTest):
self.assertEqual(tagobj.db_category, "category4")
self.assertEqual(tagobj.db_data, "data4")
class TestTags(EvenniaTest):
def test_has_tag_key_only(self):
self.obj1.tags.add("tagC", "categoryC")
self.obj1.tags.add("tagC")
self.assertTrue(self.obj1.tags.has("tagC"))
def test_has_tag_key_with_category(self):