mirror of
https://github.com/django/django.git
synced 2025-08-09 21:38:18 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
@ -7,8 +7,8 @@ from .models import CustomMessagesModel
|
|||
class CustomMessagesTests(ValidationAssertions, SimpleTestCase):
|
||||
def test_custom_simple_validator_message(self):
|
||||
cmm = CustomMessagesModel(number=12)
|
||||
self.assertFieldFailsValidationWithMessage(cmm.full_clean, 'number', ['AAARGH'])
|
||||
self.assertFieldFailsValidationWithMessage(cmm.full_clean, "number", ["AAARGH"])
|
||||
|
||||
def test_custom_null_message(self):
|
||||
cmm = CustomMessagesModel()
|
||||
self.assertFieldFailsValidationWithMessage(cmm.full_clean, 'number', ['NULL'])
|
||||
self.assertFieldFailsValidationWithMessage(cmm.full_clean, "number", ["NULL"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue