@with_setup(step_runner_environ)
def test_count_raised_exceptions_as_failing_steps():
 try:
  f = Feature.from_string(FEATURE8)
  feature_result = f.run()
  scenario_result = feature_result.scenario_results[0]
  assert_equals(len(scenario_result.steps_failed), 1)
 finally:
  registry.clear()

@ with_setup ( step_runner_environ ) def test_count_raised_exceptions_as_failing_steps ( ) : try : f = Feature . from_string ( FEATURE8 ) feature_result = f . run ( ) scenario_result = feature_result . scenario_results [ 0 ] assert_equals ( len ( scenario_result . steps_failed ) , 1 ) finally : registry . clear ( )
when a step definition raises an exception .