From 2177d4feec9de13e23eba89bf52cf884b0731235 Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Thu, 13 Mar 2014 01:29:10 -0300 Subject: [PATCH] Minor fixes in LoadTestCase in test_downloader_handlers * same __init__ parameters in both download handlers's mocks * additional assertion in test_disabled_handler --- scrapy/tests/test_downloader_handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrapy/tests/test_downloader_handlers.py b/scrapy/tests/test_downloader_handlers.py index cf7b1df78..a4e54ed76 100644 --- a/scrapy/tests/test_downloader_handlers.py +++ b/scrapy/tests/test_downloader_handlers.py @@ -33,7 +33,7 @@ from scrapy.exceptions import NotConfigured class DummyDH(object): - def __init__(self, settings): + def __init__(self, crawler): pass @@ -61,6 +61,7 @@ class LoadTestCase(unittest.TestCase): handlers = {'scheme': None} dh = DownloadHandlers(get_crawler({'DOWNLOAD_HANDLERS': handlers})) self.assertNotIn('scheme', dh._handlers) + self.assertNotIn('scheme', dh._notconfigured) class FileTestCase(unittest.TestCase):