mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Shortened some test model names that were introduced in r16366 to fix running tests on PostgreSQL.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bcad22655f
commit
bead688a3b
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ from django.test import TestCase
|
|||
from django.core.exceptions import NON_FIELD_ERRORS
|
||||
from modeltests.validation import ValidationTestCase
|
||||
from modeltests.validation.models import (Author, Article, ModelToValidate,
|
||||
GenericIPAddressTestModel, GenericIPAddressWithUnpackUniqueTestModel)
|
||||
GenericIPAddressTestModel, GenericIPAddrUnpackUniqueTest)
|
||||
|
||||
# Import other tests for this package.
|
||||
from modeltests.validation.validators import TestModelsWithValidators
|
||||
|
@ -177,7 +177,7 @@ class GenericIPAddressFieldTests(ValidationTestCase):
|
|||
self.assertEqual(None, giptm.full_clean())
|
||||
|
||||
# These two are the same, because we are doing IPv4 unpacking
|
||||
giptm = GenericIPAddressWithUnpackUniqueTestModel(generic_v4unpack_ip="::ffff:18.52.18.52")
|
||||
giptm = GenericIPAddrUnpackUniqueTest(generic_v4unpack_ip="::ffff:18.52.18.52")
|
||||
giptm.save()
|
||||
giptm = GenericIPAddressWithUnpackUniqueTestModel(generic_v4unpack_ip="18.52.18.52")
|
||||
giptm = GenericIPAddrUnpackUniqueTest(generic_v4unpack_ip="18.52.18.52")
|
||||
self.assertFailsValidation(giptm.full_clean, ['generic_v4unpack_ip',])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue