@with_setup(step_runner_environ)
def test_can_count_steps_and_its_states():
 f = Feature.from_string(FEATURE1)
 feature_result = f.run()
 scenario_result = feature_result.scenario_results[0]
 assert_equals(len(scenario_result.steps_passed), 1)
 assert_equals(len(scenario_result.steps_failed), 1)
 assert_equals(len(scenario_result.steps_undefined), 1)
 assert_equals(len(scenario_result.steps_skipped), 1)
 assert_equals(scenario_result.total_steps, 4)

@ with_setup ( step_runner_environ ) def test_can_count_steps_and_its_states ( ) : f = Feature . from_string ( FEATURE1 ) feature_result = f . run ( ) scenario_result = feature_result . scenario_results [ 0 ] assert_equals ( len ( scenario_result . steps_passed ) , 1 ) assert_equals ( len ( scenario_result . steps_failed ) , 1 ) assert_equals ( len ( scenario_result . steps_undefined ) , 1 ) assert_equals ( len ( scenario_result . steps_skipped ) , 1 ) assert_equals ( scenario_result . total_steps , 4 )
the scenario result has the steps passed .