def test_load_NYSE_symbols(self): nyse = Market.objects.get(symbol='NYSE') before = db_count('quote') parse_stocks(nyse) after = db_count('quote') self.assertTrue(after - before == 2908, 'Number of quotes mismatch!')
def test_IGBM_qoutes(self): ibgm = Market.objects.get(symbol='IGBM') before = db_count('quote') parse_stocks(ibgm) after = db_count('quote') self.assertTrue(after - before == 112, 'Number of quotes mismatch!')