Scrapy, a fast high-level web crawling & scraping framework for Python.
small improvement to Response.__init__ testcase
samus_8e38f70a746d
diff --git a/scrapy/trunk/scrapy/tests/test_http_response.py b/scrapy/trunk/scrapy/tests/test_http_response.pyindex 71e87b8b7..2d7d0641f 100644--- a/scrapy/trunk/scrapy/tests/test_http_response.py+++ b/scrapy/trunk/scrapy/tests/test_http_response.py@@ -11,6 +11,8 @@ class ResponseTest(TestCase):self.assertTrue(isinstance(Response('example.com', 'http://example.com/', body=None), Response))self.assertTrue(isinstance(Response('example.com', 'http://example.com/', body='body'), Response))self.assertRaises(AssertionError, Response, 'example.com', 'http://example.com/', body=ResponseBody('body', 'utf-8'))+ # test presence of all optional parameters+ self.assertTrue(isinstance(Response('example.com', 'http://example.com/', original_url='http://example.com/None', headers={}, status=200, body=None), Response))class ResponseBodyTest(TestCase):unicode_string = u'\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442'