mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -223,8 +223,8 @@ class BooleanFieldTests(unittest.TestCase):
|
||||
self.assertEqual(f.get_db_prep_lookup('exact', None, connection=connection), [None])
|
||||
|
||||
def _test_to_python(self, f):
|
||||
self.assertTrue(f.to_python(1) is True)
|
||||
self.assertTrue(f.to_python(0) is False)
|
||||
self.assertIs(f.to_python(1), True)
|
||||
self.assertIs(f.to_python(0), False)
|
||||
|
||||
def test_booleanfield_get_db_prep_lookup(self):
|
||||
self._test_get_db_prep_lookup(models.BooleanField())
|
||||
|
||||
Reference in New Issue
Block a user