@then(u'it should fail with')
def step_it_should_fail_with(context):
 assert (context.text is not None), 'ENSURE: multiline text is provided.'
 step_command_output_should_contain(context)
 assert_that(context.command_result.returncode, is_not(equal_to(0)))

@ then ( u'it should fail with' ) def step_it_should_fail_with ( context ) : assert ( context . text is not None ) , 'ENSURE: multiline text is provided.' step_command_output_should_contain ( context ) assert_that ( context . command_result . returncode , is_not ( equal_to ( 0 ) ) )
example: when i run "behave .