Exemplo n.º 1
0
 def test_yahoo_last_trade(self):
     s = wallstreet.Stock('GOOG', source='yahoo')
     self.assertEqual(s.last_trade, '22 Mar 2017 15:53:24')
Exemplo n.º 2
0
 def test_last_trade(self):
     s = wallstreet.Stock('GOOG')
     self.assertEqual(s.last_trade, '22 Mar 2017 11:38:12')
Exemplo n.º 3
0
 def test_yahoo_price(self):
     s = wallstreet.Stock('GOOG', source='yahoo')
     self.assertEqual(s.price, 833.65)
Exemplo n.º 4
0
 def test_price(self):
     s = wallstreet.Stock('GOOG')
     self.assertEqual(s.price, 834.34)