summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-06-28 10:55:26 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-06-28 10:55:26 +0000
commitbe6ff148c18f7e60802ea4e1b14bb5a0ee169a95 (patch)
tree172fb1160496ea7f81b85733b0a3f9ecded46ab2 /tests/regressiontests/forms
parent40d2b419ab9ed9b221091722eebc78289d76d949 (diff)
Fixed the fix from [7775].
The previous change was failing Django's "check for well-formed domain name" validation, rather than failing on the network side. Providing we don't ever set up www.broken.djangoproject.com as a valid domain name, this change should let us control our own destiny. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms')
-rw-r--r--tests/regressiontests/forms/error_messages.py2
-rw-r--r--tests/regressiontests/forms/fields.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/forms/error_messages.py b/tests/regressiontests/forms/error_messages.py
index 71adb1463f..381282f121 100644
--- a/tests/regressiontests/forms/error_messages.py
+++ b/tests/regressiontests/forms/error_messages.py
@@ -237,7 +237,7 @@ ValidationError: [u'REQUIRED']
Traceback (most recent call last):
...
ValidationError: [u'INVALID']
->>> f.clean('http://www.test.invalid')
+>>> f.clean('http://www.broken.djangoproject.com')
Traceback (most recent call last):
...
ValidationError: [u'INVALID LINK']
diff --git a/tests/regressiontests/forms/fields.py b/tests/regressiontests/forms/fields.py
index a56c75cdbf..950b1761a5 100644
--- a/tests/regressiontests/forms/fields.py
+++ b/tests/regressiontests/forms/fields.py
@@ -887,7 +887,7 @@ u'http://www.google.com'
Traceback (most recent call last):
...
ValidationError: [u'Enter a valid URL.']
->>> f.clean('http://www.test.invalid') # bad domain
+>>> f.clean('http://www.broken.djangoproject.com') # bad domain
Traceback (most recent call last):
...
ValidationError: [u'This URL appears to be a broken link.']