@with_setup(step_runner_environ)
def test_failing_behave_as_step_fails():
 runnable_step = Step.from_string('Given I have a step which calls the "other step fails" step with behave_as')
 try:
  runnable_step.run(True)
 except:
  pass
 assert runnable_step.failed

@ with_setup ( step_runner_environ ) def test_failing_behave_as_step_fails ( ) : runnable_step = Step . from_string ( 'Given I have a step which calls the "other step fails" step with behave_as' ) try : runnable_step . run ( True ) except : pass assert runnable_step . failed
when a step definition calls another step definition with behave_as .