1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Used more specific unittest assertions in tests.

This commit is contained in:
Mads Jensen
2021-04-16 23:19:25 +02:00
committed by Mariusz Felisiak
parent 7309393c3a
commit c51bf80d56
5 changed files with 8 additions and 8 deletions

View File

@@ -241,7 +241,7 @@ class NonAggregateAnnotationTestCase(TestCase):
),
rating_count=Count('rating'),
).first()
self.assertEqual(book.isnull_pubdate, False)
self.assertIs(book.isnull_pubdate, False)
self.assertEqual(book.rating_count, 1)
@skipUnlessDBFeature('supports_boolean_expr_in_select_clause')