@with_setup(step_runner_environ)
def test_can_point_undefined_steps():
 f = Feature.from_string(FEATURE2)
 feature_result = f.run()
 scenario_result = feature_result.scenario_results[0]
 assert_equals(len(scenario_result.steps_undefined), 2)
 assert_equals(len(scenario_result.steps_passed), 1)
 assert_equals(scenario_result.total_steps, 3)
 undefined1 = scenario_result.steps_undefined[0]
 undefined2 = scenario_result.steps_undefined[1]
 assert_equals(undefined1.sentence, 'Then this one has no definition')
 assert_equals(undefined2.sentence, 'And this one also')

@ with_setup ( step_runner_environ ) def test_can_point_undefined_steps ( ) : f = Feature . from_string ( FEATURE2 ) feature_result = f . run ( ) scenario_result = feature_result . scenario_results [ 0 ] assert_equals ( len ( scenario_result . steps_undefined ) , 2 ) assert_equals ( len ( scenario_result . steps_passed ) , 1 ) assert_equals ( scenario_result . total_steps , 3 ) undefined1 = scenario_result . steps_undefined [ 0 ] undefined2 = scenario_result . steps_undefined [ 1 ] assert_equals ( undefined1 . sentence , 'Then this one has no definition' ) assert_equals ( undefined2 . sentence , 'And this one also' )
the scenario result has also the undefined steps .