1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed some assertTrue() that were intended to be assertEqual().

This commit is contained in:
Sergey Fedoseev
2018-07-09 20:13:40 +05:00
committed by Tim Graham
parent 3411c5551a
commit c9088cfc7b
3 changed files with 6 additions and 6 deletions

View File

@@ -461,8 +461,8 @@ class InheritanceSameModelNameTests(SimpleTestCase):
ForeignReferent = Referent
self.assertFalse(hasattr(Referenced, related_name))
self.assertTrue(Referenced.model_inheritance_referent_references.rel.model, LocalReferent)
self.assertTrue(Referenced.tests_referent_references.rel.model, ForeignReferent)
self.assertIs(Referenced.model_inheritance_referent_references.field.model, LocalReferent)
self.assertIs(Referenced.tests_referent_references.field.model, ForeignReferent)
class InheritanceUniqueTests(TestCase):