mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
This commit is contained in:
committed by
Tim Graham
parent
3b133ffb8b
commit
eaeea6f947
@@ -288,7 +288,7 @@ class RelatedGeoModelTest(TestCase):
|
||||
Book.objects.create(title='Without Author')
|
||||
b = Book.objects.select_related('author').get(title='Without Author')
|
||||
# Should be `None`, and not a 'dummy' model.
|
||||
self.assertEqual(None, b.author)
|
||||
self.assertIsNone(b.author)
|
||||
|
||||
@skipUnlessDBFeature("supports_collect_aggr")
|
||||
@ignore_warnings(category=RemovedInDjango20Warning)
|
||||
|
||||
Reference in New Issue
Block a user