summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/regressiontests/model_inheritance_regress/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/regressiontests/model_inheritance_regress/tests.py b/tests/regressiontests/model_inheritance_regress/tests.py
index 1bb147e17c..e1dfa4af22 100644
--- a/tests/regressiontests/model_inheritance_regress/tests.py
+++ b/tests/regressiontests/model_inheritance_regress/tests.py
@@ -394,15 +394,15 @@ class ModelInheritanceTest(TestCase):
# Regression test for #13987: Primary key is incorrectly determined
# when more than one model has a concrete->abstract->concrete
# inheritance hierarchy.
- self.assertEquals(
+ self.assertEqual(
len([field for field in BusStation._meta.local_fields
if field.primary_key]),
1
)
- self.assertEquals(
+ self.assertEqual(
len([field for field in TrainStation._meta.local_fields
if field.primary_key]),
1
)
- self.assertIs(BusStation._meta.pk.model, BusStation)
- self.assertIs(TrainStation._meta.pk.model, TrainStation)
+ self.assertTrue(BusStation._meta.pk.model is BusStation)
+ self.assertTrue(TrainStation._meta.pk.model is TrainStation)