diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2015-04-27 15:59:16 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-28 09:31:04 -0400 |
| commit | eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 (patch) | |
| tree | 079b87aab13fc4db25f88ad2c98e68512c7bc39a /tests/model_fields | |
| parent | 3b133ffb8bdf1e0e4c3f2c3af8a62376da643350 (diff) | |
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 46779626f8..bb19af263c 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -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) |
