def METHOD_NAME(self):
    crawler = self._create_crawler(MediaDownloadSpider)
    with LogCapture() as log:
        yield crawler.crawl(
            self.mockserver.url("/files/images/"),
            media_key=self.media_key,
            media_urls_key=self.media_urls_key,
        )
    self._assert_files_downloaded(self.items, str(log))