Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_validation/tests.py
blob: ffd0d894126a62b1e8ed0e2461aff8a87df9ebd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
        management.call_command("validate", stdout=six.StringIO())