Skip to content

Commit ba2fb90

Browse files
committed
Completing the test for get_union_by_model
1 parent 3875d97 commit ba2fb90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tagging/tests/tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,12 @@ def test_get_union_by_model(self):
804804
# Issue 114 - Union with non-existant tags
805805
parrots = TaggedItem.objects.get_union_by_model(Parrot, [])
806806
self.assertEqual(len(parrots), 0)
807+
parrots = TaggedItem.objects.get_union_by_model(Parrot, ['albert'])
808+
self.assertEqual(len(parrots), 0)
809+
810+
Tag.objects.create(name='titi')
811+
parrots = TaggedItem.objects.get_union_by_model(Parrot, ['titi'])
812+
self.assertEqual(len(parrots), 0)
807813

808814

809815
class TestGetRelatedTaggedItems(TestCase):

0 commit comments

Comments
 (0)