added another test for safe_url_string function

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40294
This commit is contained in:
Pablo Hoffman 2008-10-03 04:14:07 +00:00
parent e447044fb9
commit 71c3cea112
1 changed files with 3 additions and 1 deletions

View File

@ -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/')