aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorArtem Mezhenin2014-02-13 18:59:05 +0400
committerArtem Mezhenin2014-02-13 18:59:05 +0400
commitd00ea3bcac5d622c586b267d18aef4700657f269 (patch)
tree9713d784b6cf570f8c3a006c02c90ca4393872ab /rest_framework/tests
parent35f4908e48cc18e94be239f8065c95e87b2fb007 (diff)
downloaddjango-rest-framework-d00ea3bcac5d622c586b267d18aef4700657f269.tar.bz2
change regex back, issue #1386
Diffstat (limited to 'rest_framework/tests')
-rw-r--r--rest_framework/tests/test_templatetags.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/rest_framework/tests/test_templatetags.py b/rest_framework/tests/test_templatetags.py
index 0c2259b9..999c718a 100644
--- a/rest_framework/tests/test_templatetags.py
+++ b/rest_framework/tests/test_templatetags.py
@@ -29,26 +29,20 @@ class Issue1386Tests(TestCase):
Test function urlize_quoted_links with different args
"""
correct_urls = [
- "asdf.com/zxvc",
+ "asdf.com",
"asdf.net",
"www.as_df.org",
"as.d8f.ghj8.gov",
- "www.a-op.s.d.edu/asdf/dfff_908/",
- "cd8fr.com:80/hello",
- "cdfr.com:808/hello",
- "cdfr.com:8080/hello",
- "cdfr.com:44808/hello/asdf/",
]
for i in correct_urls:
res = urlize_quoted_links(i)
- self.assertGreater(len(res), len(i))
+ self.assertNotEqual(res, i)
self.assertIn(i, res)
incorrect_urls = [
"mailto://asdf@fdf.com",
- "asdf://asdf.com",
"asdf.netnet",
- "asdf:[/p]zxcv.com" # example from issue #1386
+ "asdf:[/p]zxcv.com", # example from issue #1386
]
for i in incorrect_urls:
res = urlize_quoted_links(i)