def METHOD_NAME(steps, method, expected_message):
    pipeline = Pipeline()
    for step in steps:
        pipeline = pipeline.add_step(**step)
    with pytest.raises(MethodNotImplementedError, match=expected_message):
        getattr(pipeline, method)(None, None)