mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
parent
f091ea3515
commit
193c109327
37 changed files with 130 additions and 134 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue