mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
This commit is contained in:
committed by
Tim Graham
parent
3b133ffb8b
commit
eaeea6f947
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user