diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2014-10-28 12:02:56 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-03 11:56:37 -0500 |
| commit | f7969b0920c403118656f6bfec58d6454d79ef1a (patch) | |
| tree | 866df7de0524251323fef2b4262e672150d95f00 /tests/m2m_regress | |
| parent | c0c78f1b707f825eee974c65515a837f8cf46e66 (diff) | |
Fixed #23620 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/m2m_regress')
| -rw-r--r-- | tests/m2m_regress/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/m2m_regress/tests.py b/tests/m2m_regress/tests.py index fd92a0b634..e795e06594 100644 --- a/tests/m2m_regress/tests.py +++ b/tests/m2m_regress/tests.py @@ -85,12 +85,12 @@ class M2MRegressionTests(TestCase): t2 = Tag.objects.create() # Get same manager twice in a row: - self.assertTrue(t1.entry_set.__class__ is t1.entry_set.__class__) - self.assertTrue(e1.topics.__class__ is e1.topics.__class__) + self.assertIs(t1.entry_set.__class__, t1.entry_set.__class__) + self.assertIs(e1.topics.__class__, e1.topics.__class__) # Get same manager for different instances - self.assertTrue(e1.topics.__class__ is e2.topics.__class__) - self.assertTrue(t1.entry_set.__class__ is t2.entry_set.__class__) + self.assertIs(e1.topics.__class__, e2.topics.__class__) + self.assertIs(t1.entry_set.__class__, t2.entry_set.__class__) def test_m2m_abstract_split(self): # Regression for #19236 - an abstract class with a 'split' method |
