예제 #1
0
 def test_load_NYSE_symbols(self):
     nyse = Market.objects.get(symbol='NYSE')
     
     before = db_count('stock')
     load_market_symbols(nyse)
     after = db_count('stock')
     
     self.assertTrue(after - before == 2908, 'Number of stocks mismatch!')
예제 #2
0
 def test_load_IGBM_symbols(self):
     igbm = Market.objects.get(symbol='IGBM')
     
     before = db_count('stock')
     load_market_symbols(igbm)
     after = db_count('stock')
     
     self.assertTrue(after - before == 112, 'Number of stocks mismatch!')