From 71c3cea112a9041a61b8bd210b0166098168da3b Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 3 Oct 2008 04:14:07 +0000 Subject: [PATCH] added another test for safe_url_string function --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40294 --- scrapy/trunk/scrapy/tests/test_utils_url.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrapy/trunk/scrapy/tests/test_utils_url.py b/scrapy/trunk/scrapy/tests/test_utils_url.py index 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/')