1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[1.8.x] Fixed #24714 -- Used more specific assertions than assertEqual in tests.

Backport of eaeea6f947 from master
This commit is contained in:
Alasdair Nicol
2015-04-27 15:59:16 +01:00
committed by Tim Graham
parent 5105c1628d
commit c37eb3c870
17 changed files with 83 additions and 82 deletions

View File

@@ -478,7 +478,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)