Ejemplo n.º 1
0
    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!')
Ejemplo n.º 2
0
    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!')