def test_ah_volume_symbol(self): # method test_ah_volume_symbol checks if the symbol value # being returned from ah_volume is equal to the test symbol # used in unit test, aapl stock_symbol = 'aapl' test = after_hours.ah_volume(stock_symbol) self.assertEqual(test[0], 'aapl', msg='Test ah_volume symbol failed')
def test_ah_volume(self): # method test_ah_volume checks if the value being returned # from ah_volume is not blank stock_symbol = 'aapl' test = after_hours.ah_volume(stock_symbol) self.assertNotEqual(test[1], '', msg='Test ah_volume volume failed')