def test_verbose_output():
    """Test verbose output of failed feature scenario."""
    with pytest.raises(exceptions.FeatureError) as excinfo:
        scenario('when_after_then.feature', 'When after then')

    msg, line_number, line, file = excinfo.value.args

    assert line_number == 5
    assert line == 'When I do it again'
    assert file == os.path.join(os.path.dirname(__file__), 'when_after_then.feature')
    assert str(excinfo.value) in line
dataset/ETHPy150Open pytest-dev/pytest-bdd/tests/feature/test_wrong.py/test_verbose_output/swapped operands of `in`