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/validation/test_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/validation/test_validators.py') diff --git a/tests/validation/test_validators.py b/tests/validation/test_validators.py index c3875d4601..d06605eeca 100644 --- a/tests/validation/test_validators.py +++ b/tests/validation/test_validators.py @@ -7,7 +7,7 @@ from .models import ModelToValidate class TestModelsWithValidators(ValidationTestCase): def test_custom_validator_passes_for_correct_value(self): mtv = ModelToValidate(number=10, name='Some Name', f_with_custom_validator=42) - self.assertEqual(None, mtv.full_clean()) + self.assertIsNone(mtv.full_clean()) def test_custom_validator_raises_error_for_incorrect_value(self): mtv = ModelToValidate(number=10, name='Some Name', f_with_custom_validator=12) -- cgit v1.3