@with_setup(step_runner_environ)
def test_failing_behave_as_step_raises_assertion():
 runnable_step = Step.from_string('Given I have a step which calls the "other step fails" step with behave_as')
 assert_raises(AssertionError, runnable_step.run, True)

@ with_setup ( step_runner_environ ) def test_failing_behave_as_step_raises_assertion ( ) : runnable_step = Step . from_string ( 'Given I have a step which calls the "other step fails" step with behave_as' ) assert_raises ( AssertionError , runnable_step . run , True )
when a step definition calls another step definition with behave_as .