def test_get_tag_for_string(self): self.group.tag_set.add(self.tag1) self.assertTrue(self.tag1 == Tag.tag_for_string(str(self.tag1)))
def test_tag_for_string_system_group(self): t = Tag.tag_for_string("*system_group:tag_a") self.assertEquals(t, self.tag_a)