aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorArtem Mezhenin2014-02-13 19:39:53 +0400
committerArtem Mezhenin2014-02-13 19:39:53 +0400
commit08ec23268dbb4a40000b6c4bf877f5563a4ba57b (patch)
tree596adde1d618a21b1299452b2d51ee236a5e1751 /rest_framework
parentd00ea3bcac5d622c586b267d18aef4700657f269 (diff)
downloaddjango-rest-framework-08ec23268dbb4a40000b6c4bf877f5563a4ba57b.tar.bz2
(I hope) tests are fixed, issue #1386
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/tests/test_templatetags.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rest_framework/tests/test_templatetags.py b/rest_framework/tests/test_templatetags.py
index 999c718a..d4da0c23 100644
--- a/rest_framework/tests/test_templatetags.py
+++ b/rest_framework/tests/test_templatetags.py
@@ -42,8 +42,10 @@ class Issue1386Tests(TestCase):
incorrect_urls = [
"mailto://asdf@fdf.com",
"asdf.netnet",
- "asdf:[/p]zxcv.com", # example from issue #1386
]
for i in incorrect_urls:
res = urlize_quoted_links(i)
- self.assertEqual(i, res) \ No newline at end of file
+ self.assertEqual(i, res)
+
+ # example from issue #1386, this shouldn't raise an exception
+ _ = urlize_quoted_links("asdf:[/p]zxcv.com")