def test_execute_steps_with_undefined_step(self):
        doc = u"""
Given a step passes
When a step is undefined
Then a step passes
""".lstrip()
        with patch("behave.step_registry.registry", self.step_registry):
            try:
                result = self.context.execute_steps(doc)
            except AssertionError as e:
                ok_("UNDEFINED SUB-STEP: When a step is undefined" in _text(e))
dataset/ETHPy150Open behave/behave/test/test_runner.py/TestContext_ExecuteSteps.test_execute_steps_with_undefined_step/original