

def test_rollback_params(self):
    action = mock.Mock()
    action2 = mock.Mock()
    action2.forward.side_effect = NotImplementedError()
    pipeline = Pipeline(actions=[action, action2])
    pipeline.execute(param='value')
    action.forward.assert_called_with(param='value')
    action.backward.assert_called_with(param='value')
    action2.forward.assert_called_with(param='value')

dataset/ETHPy150Open tsuru/healthcheck-as-a-service/tests/test_actions.py PipelineTest.test_rollback_params/original