mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from . import ValidationTestCase
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from . import ValidationAssertions
|
||||
from .models import CustomMessagesModel
|
||||
|
||||
|
||||
class CustomMessagesTest(ValidationTestCase):
|
||||
class CustomMessagesTests(ValidationAssertions, SimpleTestCase):
|
||||
def test_custom_simple_validator_message(self):
|
||||
cmm = CustomMessagesModel(number=12)
|
||||
self.assertFieldFailsValidationWithMessage(cmm.full_clean, 'number', ['AAARGH'])
|
||||
|
||||
Reference in New Issue
Block a user