def test_ah_high_symbol(self): # method test_ah_high_symbol checks if the symbol value # being returned from ah_high is equal to test symbol # of aapl stock_symbol = 'aapl' test = after_hours.ah_high(stock_symbol) self.assertEqual(test[0], 'aapl', msg='Test ah_high symbol failed')
def test_ah_high_time(self): # method test_ah_high_time checks if value returned from # ah_high time is not blank stock_symbol = 'aapl' test = after_hours.ah_high(stock_symbol) self.assertNotEqual(test[2], '', msg='Test ah_high time failed')
def test_ah_high_price(self): # method test_ah_high_price checks if value being returned from # ah_high is greater than 0 for price stock_symbol = 'aapl' test = after_hours.ah_high(stock_symbol) self.assertGreater(test[1], 0, msg='Test ah_high price failed')