mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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,7 @@
|
|||
from django.core.exceptions import ValidationError
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
class ValidationTestCase(TestCase):
|
||||
class ValidationAssertions:
|
||||
def assertFailsValidation(self, clean, failed_fields, **kwargs):
|
||||
with self.assertRaises(ValidationError) as cm:
|
||||
clean(**kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue