

def setUp(self):
    crawler = get_crawler(Spider, {
        'AJAXCRAWL_ENABLED': True,
    })
    self.spider = crawler._create_spider('foo')
    crawler.mw = AjaxCrawlMiddleware.from_crawler(crawler)

dataset/ETHPy150Open scrapy/scrapy/tests/test_downloadermiddleware_ajaxcrawlable.py AjaxCrawlMiddlewareTest.setUp/VarMisuse@37/51 `self`->`crawler`