class XbrlFinancialStatementSpiderTest(unittest.TestCase): def setUp(self): self.spider = XbrlFinancialStatementSpider() def tearDown(self): self.spider = None def test_crawl_2330_in_2014Q3(self): param = {"stock_symbol": "2330", "date": datetime.date(2014, 9, 30)} self.spider.crawl(param) self.assertTrue(self.spider.is_crawled(param))
def setUp(self): self.spider = XbrlFinancialStatementSpider()