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:35 -0400 |
| commit | c37eb3c870db46f64578e9974f576dd2d8c40f8a (patch) | |
| tree | 505c0d36d0ebe157aec2c6c88b381d1fd1e16982 /tests/validation/test_validators.py | |
| parent | 5105c1628d0c43a39669609d0746630c444641e0 (diff) | |
[1.8.x] Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Backport of eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 from master
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) |
