diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-06-02 00:37:54 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-06-02 00:37:54 +0000 |
| commit | 41bf859b67fdde731a0aa6750b18d9961c217353 (patch) | |
| tree | 92c127761c1ac5e136e966919f58fd25c9cba172 | |
| parent | 855423542c4360a1e1327957bbb080c6deef9c82 (diff) | |
[soc2009/model-validation] Make GetUniqueCheckTests proper testCase since it doesn't need DB
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/validation/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/modeltests/validation/tests.py b/tests/modeltests/validation/tests.py index fd30628c19..f5944c3649 100644 --- a/tests/modeltests/validation/tests.py +++ b/tests/modeltests/validation/tests.py @@ -1,3 +1,5 @@ +import unittest + from django.core.exceptions import ValidationError, NON_FIELD_ERRORS from django.test import TestCase from django.db import models @@ -38,7 +40,7 @@ class BaseModelValidationTests(TestCase): mtv=ModelToValidate(number=10, name='Some Name', parent_id=parent.pk) self.assertEqual(None, mtv.clean()) -class GetUniqueCheckTests(TestCase): +class GetUniqueCheckTests(unittest.TestCase): def test_unique_fields_get_collected(self): m = UniqueFieldsModel() self.assertEqual(([('id',), ('unique_charfield',), ('unique_integerfield',)], []), m._get_unique_checks()) |
