Ticket #25260: 25260-test.diff

File 25260-test.diff, 674 bytes (added by Tim Graham, 9 years ago)
  • tests/basic/tests.py

    diff --git a/tests/basic/tests.py b/tests/basic/tests.py
    index a37aa77..fc448af 100644
    a b class ModelLookupTest(TestCase):  
    524524        self.assertQuerysetEqual(Article.objects.filter(pk__in=[self.a.id]),
    525525            ["<Article: Area woman programs in Python>"])
    526526
     527        self.assertQuerysetEqual(
     528            Article.objects.filter(pk__in=set([self.a.id])),
     529            ["<Article: Area woman programs in Python>"]
     530        )
     531
    527532        # Model instances of the same type and same ID are considered equal.
    528533        a = Article.objects.get(pk=self.a.id)
    529534        b = Article.objects.get(pk=self.a.id)
Back to Top