From eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Mon, 27 Apr 2015 15:59:16 +0100 Subject: Fixed #24714 -- Used more specific assertions than assertEqual in tests. --- tests/model_fields/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/model_fields') 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) -- cgit v1.3