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/null_fk/tests.py | |
parent | c0c78f1b707f825eee974c65515a837f8cf46e66 (diff) | |
download | django-f7969b0920c403118656f6bfec58d6454d79ef1a.tar.gz |
Fixed #23620 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/null_fk/tests.py')
-rw-r--r-- | tests/null_fk/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/null_fk/tests.py b/tests/null_fk/tests.py index 696c7a3035..26eae6491e 100644 --- a/tests/null_fk/tests.py +++ b/tests/null_fk/tests.py @@ -35,7 +35,7 @@ class NullFkTests(TestCase): ) # Regression test for #7530, #7716. - self.assertTrue(Comment.objects.select_related('post').filter(post__isnull=True)[0].post is None) + self.assertIsNone(Comment.objects.select_related('post').filter(post__isnull=True)[0].post) self.assertQuerysetEqual( Comment.objects.select_related('post__forum__system_info__system_details'), |