@then('the text is substituted as expected')
def step_impl(context):
    assert context.saved_text, (context.saved_text, ) % 'context.saved_text is %r!!'
    expected = TEXT.replace('ipsum', context.active_outline['ipsum'])
    context.saved_text.assert_equals(expected)
dataset/ETHPy150Open behave/behave/tools/test-features/steps/steps.py/step_impl/swapped operands of `%`