def test_reset_successfully_returns_indicator_to_fresh_state(self): # Arrange instance = SpreadAnalyzer(AUDUSD_SIM.id, 1000) # Act instance.reset() # Assert self.assertFalse(instance.initialized) self.assertEqual(0, instance.current)
def test_reset_successfully_returns_indicator_to_fresh_state(self): # Arrange instance = SpreadAnalyzer(AUDUSD_SIM.id, 1000) # Act instance.reset() # Assert assert not instance.initialized assert instance.current == 0