summaryrefslogtreecommitdiff
path: root/tests/validation/tests.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-03-14 15:25:27 +0100
committerClaude Paroz <claude@2xlibre.net>2013-03-14 15:26:30 +0100
commit34d098665d9423c0b70add5b8c8231fff9d0f774 (patch)
tree6127d10ab6b4c4f46c89a56fb34fc0304419e120 /tests/validation/tests.py
parentb492e590746df51ddcdfa2a2372008455a457bcc (diff)
Add a specific error message for URLValidator
Diffstat (limited to 'tests/validation/tests.py')
-rw-r--r--tests/validation/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/tests.py b/tests/validation/tests.py
index 58b7b94e7f..ed9ca96bc6 100644
--- a/tests/validation/tests.py
+++ b/tests/validation/tests.py
@@ -55,7 +55,7 @@ class BaseModelValidationTests(ValidationTestCase):
def test_wrong_url_value_raises_error(self):
mtv = ModelToValidate(number=10, name='Some Name', url='not a url')
- self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', ['Enter a valid value.'])
+ self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', ['Enter a valid URL.'])
def test_text_greater_that_charfields_max_length_raises_erros(self):
mtv = ModelToValidate(number=10, name='Some Name'*100)