mirror of https://github.com/scrapy/scrapy.git
added another test for safe_url_string function
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40294
This commit is contained in:
parent
e447044fb9
commit
71c3cea112
|
|
@ -37,7 +37,9 @@ class UrlUtilsTest(unittest.TestCase):
|
|||
|
||||
self.assertEqual(safe_url_string("http://www.example.com/test?p(29)url(http://www.another.net/page)"),
|
||||
"http://www.example.com/test?p(29)url(http://www.another.net/page)")
|
||||
|
||||
self.assertEqual(safe_url_string("http://www.example.com/Brochures_&_Paint_Cards&PageSize=200"),
|
||||
"http://www.example.com/Brochures_&_Paint_Cards&PageSize=200")
|
||||
|
||||
def test_safe_download_url(self):
|
||||
self.assertEqual(safe_download_url('http://www.scrapy.org/../'),
|
||||
'http://www.scrapy.org/')
|
||||
|
|
|
|||
Loading…
Reference in New Issue