1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Author: Luke Faraone <lfaraone@debian.org>
Last-Updated: 2013-08-13
Forwarded: no
Subject: Use name that won't resolve in tests.
--- a/tests/modeltests/validation/tests.py
+++ b/tests/modeltests/validation/tests.py
@@ -86,7 +86,7 @@
self.assertEqual(None, mtv.full_clean()) # This will fail if there's no Internet connection
def test_correct_https_url_but_nonexisting(self):
- mtv = ModelToValidate(number=10, name='Some Name', url_verify='https://www.example.com/')
+ mtv = ModelToValidate(number=10, name='Some Name', url_verify='https://www.example.invalid/')
self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url_verify', [u'This URL appears to be a broken link.'])
def test_text_greater_that_charfields_max_length_raises_erros(self):
|