summaryrefslogtreecommitdiff
path: root/tests/null_fk
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-06-16 11:19:18 -0700
committerTim Graham <timograham@gmail.com>2016-06-16 14:19:18 -0400
commit4f336f66523001b009ab038b10848508fd208b3b (patch)
tree47474fb588013f1770246455ef7aa1a4163a1edb /tests/null_fk
parentea34426ae789d31b036f58c8fd59ce299649e91e (diff)
downloaddjango-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.py2
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(),