diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-06-16 11:19:18 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-06-16 14:19:18 -0400 |
commit | 4f336f66523001b009ab038b10848508fd208b3b (patch) | |
tree | 47474fb588013f1770246455ef7aa1a4163a1edb /tests/null_fk | |
parent | ea34426ae789d31b036f58c8fd59ce299649e91e (diff) | |
download | django-4f336f66523001b009ab038b10848508fd208b3b.tar.gz |
Fixed #26747 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/null_fk')
-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 008c0981e6..19b285e32a 100644 --- a/tests/null_fk/tests.py +++ b/tests/null_fk/tests.py @@ -24,7 +24,7 @@ class NullFkTests(TestCase): # test for #7369. c = Comment.objects.select_related().get(id=c1.id) self.assertEqual(c.post, p) - self.assertEqual(Comment.objects.select_related().get(id=c2.id).post, None) + self.assertIsNone(Comment.objects.select_related().get(id=c2.id).post) self.assertQuerysetEqual( Comment.objects.select_related('post__forum__system_info').all(), |