def test_pre_low_symbol(self): # method test_pre_low_symbol checks if the symbol # being returned from pre_low is accurate stock_symbol = 'aapl' test = after_hours.pre_low(stock_symbol) test = test[0] self.assertEqual(test, 'aapl', msg='Test pre_low symbol failed')
def test_pre_low_time(self): # method test_pre_low_time checks if the time value # being returned from pre_low is not blank stock_symbol = 'aapl' test = after_hours.pre_low(stock_symbol) test = test[2] self.assertNotEqual(test, '', msg='Test pre_low time failed')
def test_pre_low_price(self): # method test_pre_low_price checks if the price # being returned from pre_low is greater than 0 stock_symbol = 'aapl' test = after_hours.pre_low(stock_symbol) test = test[1] self.assertGreater(test, 0, msg='Test pre_low price failed')