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/validation/test_validators.py | |
| parent | 3b133ffb8bdf1e0e4c3f2c3af8a62376da643350 (diff) | |
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Diffstat (limited to 'tests/validation/test_validators.py')
| -rw-r--r-- | tests/validation/test_validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
