def test_ah_low_symbol(self): # method test_ah_low_symbol checks if the symbol value # being returned from ah_low is equal to test symbol # used in unit test, aapl stock_symbol = 'aapl' test = after_hours.ah_low(stock_symbol) self.assertEqual(test[0], 'aapl', msg='Test ah_low symbol failed')
def test_ah_low_time(self): # method test_ah_low_time checks if the value returned # from ah_low is not blank stock_symbol = 'aapl' test = after_hours.ah_low(stock_symbol) self.assertNotEqual(test[2], '', msg='Test ah_low time failed')
def test_ah_low_price(self): # method test_ah_low_price checks if value being returned # from ah_low is greater than 0 for price stock_symbol = 'aapl' test = after_hours.ah_low(stock_symbol) self.assertNotEqual(test[1], '', msg='Test ah_low price failed')