@with_setup(step_runner_environ)
def test_successful_behave_as_step_doesnt_fail():
 runnable_step = Step.from_string('Given I have a step which calls the "define a step" step with behave_as')
 runnable_step.run(True)
 assert_false(runnable_step.failed)

@ with_setup ( step_runner_environ ) def test_successful_behave_as_step_doesnt_fail ( ) : runnable_step = Step . from_string ( 'Given I have a step which calls the "define a step" step with behave_as' ) runnable_step . run ( True ) assert_false ( runnable_step . failed )
when a step definition calls another step definition with behave_as .