blob: 494af97f961869bd33b9d80e30643ab9a0533c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from django.core import management
from django.test import TestCase
from django.utils import six
class ModelValidationTest(TestCase):
def test_models_validate(self):
# All our models should validate properly
# Validation Tests:
# * choices= Iterable of Iterables
# See: https://code.djangoproject.com/ticket/20430
# * related_name='+' doesn't clash with another '+'
# See: https://code.djangoproject.com/ticket/21375
management.call_command("validate", stdout=six.StringIO())
|