Ejemplo n.º 1
0
 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)))
Ejemplo n.º 2
0
 def test_tag_for_string_system_group(self):
     t = Tag.tag_for_string("*system_group:tag_a")
     self.assertEquals(t, self.tag_a)