def test_ah_sse_symbol(self): # method test_ah_sse_symbol checks if the symbol value # from ah_sse is being returned accurately stock_symbol = 'yhoo' test = after_hours.ah_sse(stock_symbol) test = test[0] self.assertEqual(test, 'yhoo', msg='Test ah_sse symbol failed')
def test_ah_sse_value(self): # method test_ah_sse_value checks if the value being # returned for sum of square deviations is greater than 0 # from method ah_sse stock_symbol = 'yhoo' test = after_hours.ah_sse(stock_symbol) test = test[1] self.assertGreater(test, 0, msg='Test ah_sse value failed')