Add assertion on crawler not running

This commit is contained in:
Paul Tremberth 2016-11-08 11:46:16 +01:00
parent 61efacdd1f
commit 27456996a9
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ with multiples lines
yield self.assertFailure(
self.runner.crawl(crawler, "http://localhost:8998/status?n=200"),
ZeroDivisionError)
self.assertFalse(crawler.crawling)
@defer.inlineCallbacks
def test_crawlerrunner_accepts_crawler(self):