Scrapy, a fast high-level web crawling & scraping framework for Python.
added another test for safe_url_string function
Pablo Hoffman71c3cea112a9
diff --git a/scrapy/trunk/scrapy/tests/test_utils_url.py b/scrapy/trunk/scrapy/tests/test_utils_url.pyindex 4abae3014..bc7dae523 100644--- a/scrapy/trunk/scrapy/tests/test_utils_url.py+++ b/scrapy/trunk/scrapy/tests/test_utils_url.py@@ -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/')