mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
This commit is contained in:
parent
3b133ffb8b
commit
eaeea6f947
17 changed files with 83 additions and 82 deletions
|
@ -514,7 +514,7 @@ class ValidationTest(test.TestCase):
|
|||
|
||||
def test_nullable_integerfield_cleans_none_on_null_and_blank_true(self):
|
||||
f = models.IntegerField(null=True, blank=True)
|
||||
self.assertEqual(None, f.clean(None, None))
|
||||
self.assertIsNone(f.clean(None, None))
|
||||
|
||||
def test_integerfield_raises_error_on_empty_input(self):
|
||||
f = models.IntegerField(null=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue