def test_pre_all_symbol(self):
     # method test_pre_all_symbol checks if the symbol being
     # returned from pre_all is accurate
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test = test[0]
     self.assertEqual(test, 'aapl', msg='Test pre_all symbol failed')
 def test_pre_all_symbol(self):
     # method test_pre_all_symbol checks if the symbol being
     # returned from pre_all is accurate
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test = test[0]
     self.assertEqual(test, 'aapl', msg='Test pre_all symbol failed')
 def test_pre_all_volume(self):
     # method test_pre_all_volume checks if the volume being
     # returned from pre_all is not blank
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test1 = test[3]
     test2 = test1[0]
     self.assertNotEqual(test2, '', msg='Test pre_all volume failed')
 def test_pre_all_price(self):
     # method test_pre_all_time checks if the price value being
     # returned from pre_all is greater than 0
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test = test[2]
     test1 = test[0]
     self.assertGreater(test1, 0, msg='Test pre_all price failed')
 def test_pre_all_volume(self):
     # method test_pre_all_volume checks if the volume being
     # returned from pre_all is not blank
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test1 = test[3]
     test2 = test1[0]
     self.assertNotEqual(test2, '', msg='Test pre_all volume failed')
 def test_pre_all_price(self):
     # method test_pre_all_time checks if the price value being
     # returned from pre_all is greater than 0
     stock_symbol = 'aapl'
     test = after_hours.pre_all(stock_symbol)
     test = test[2]
     test1 = test[0]
     self.assertGreater(test1, 0, msg='Test pre_all price failed')