Browse files

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
  • Loading branch information...
1 parent bcad226 commit bead688a3bde7ba0225a3421e49fb767078e3498 @jezdez jezdez committed Jun 13, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 tests/modeltests/validation/models.py
  2. +3 −3 tests/modeltests/validation/tests.py
View
2 tests/modeltests/validation/models.py
@@ -88,5 +88,5 @@ class GenericIPAddressTestModel(models.Model):
v4_ip = models.GenericIPAddressField(blank=True, protocol="ipv4")
v6_ip = models.GenericIPAddressField(blank=True, protocol="ipv6")
-class GenericIPAddressWithUnpackUniqueTestModel(models.Model):
+class GenericIPAddrUnpackUniqueTest(models.Model):
generic_v4unpack_ip = models.GenericIPAddressField(blank=True, unique=True, unpack_ipv4=True)
View
6 tests/modeltests/validation/tests.py
@@ -3,7 +3,7 @@
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 @@ def test_v4_unpack_uniqueness_detection(self):
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',])

0 comments on commit bead688

Please sign in to comment.