def test_pre_volume_volume(self): # method test_pre_volume_volume checks if the volume # value being returned from pre_volume is not blank stock_symbol = 'aapl' test = after_hours.pre_volume(stock_symbol) test = test[1] self.assertNotEqual(test, '', msg='Test pre_volume volume failed')
def test_pre_volume_symbol(self): # method test_pre_volume_symbol checks if the symbol # being returned from pre_volume is accurate stock_symbol = 'aapl' test = after_hours.pre_volume(stock_symbol) test = test[0] self.assertEqual(test, 'aapl', msg='Test pre_volume symbol failed')