We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3875d97 commit ba2fb90Copy full SHA for ba2fb90
tagging/tests/tests.py
@@ -804,6 +804,12 @@ def test_get_union_by_model(self):
804
# Issue 114 - Union with non-existant tags
805
parrots = TaggedItem.objects.get_union_by_model(Parrot, [])
806
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
813
814
815
class TestGetRelatedTaggedItems(TestCase):
0 commit comments