def test_ah_sd_value(self): # method test_ah_sd_value checks if the value # being returned from ah_sd is greater than 0 stock_symbol = 'yhoo' test = after_hours.ah_sd(stock_symbol) test = test[1] self.assertGreater(test, 0, msg='Test ah_sd value failed')
def test_ah_sd_symbol(self): # method test_ah_sd_symbol checks if the symbol value # from ah_sd is being returned accurately stock_symbol = 'yhoo' test = after_hours.ah_sd(stock_symbol) test = test[0] self.assertEqual(test, 'yhoo', msg='Test ah_sd symbol failed')