mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
(I hope) tests are fixed, issue #1386
This commit is contained in:
parent
d00ea3bcac
commit
08ec23268d
|
@ -42,8 +42,10 @@ class Issue1386Tests(TestCase):
|
||||||
incorrect_urls = [
|
incorrect_urls = [
|
||||||
"mailto://asdf@fdf.com",
|
"mailto://asdf@fdf.com",
|
||||||
"asdf.netnet",
|
"asdf.netnet",
|
||||||
"asdf:[/p]zxcv.com", # example from issue #1386
|
|
||||||
]
|
]
|
||||||
for i in incorrect_urls:
|
for i in incorrect_urls:
|
||||||
res = urlize_quoted_links(i)
|
res = urlize_quoted_links(i)
|
||||||
self.assertEqual(i, res)
|
self.assertEqual(i, res)
|
||||||
|
|
||||||
|
# example from issue #1386, this shouldn't raise an exception
|
||||||
|
_ = urlize_quoted_links("asdf:[/p]zxcv.com")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user