1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Corrected test assertion from refs #21403.

This commit is contained in:
Tim Graham 2014-12-15 12:04:07 -05:00
parent d8182f294a
commit e8223b889a

View File

@ -228,7 +228,7 @@ class GenericRelationTests(TestCase):
# then wrong results are produced here as the link to b will also match
# (b and hs1 have equal pks).
self.assertEqual(qs.count(), 1)
self.assertEqual(qs[0].links__sum, l.id)
self.assertEqual(qs[0].links__sum, hs1.id)
l.delete()
# Now if we don't have proper left join, we will not produce any
# results at all here.