@with_setup(prepare_stdout)
def test_output_level_2_success():
 runner = Runner(join(abspath(dirname(__file__)), 'output_features', 'many_successful_scenarios'), verbosity=2)
 runner.run()
 assert_stdout_lines('Do nothing ... OK\nDo nothing (again) ... OK\n\n1 feature (1 passed)\n2 scenarios (2 passed)\n2 steps (2 passed)\n')

@ with_setup ( prepare_stdout ) def test_output_level_2_success ( ) : runner = Runner ( join ( abspath ( dirname ( __file__ ) ) , 'output_features' , 'many_successful_scenarios' ) , verbosity = 2 ) runner . run ( ) assert_stdout_lines ( 'Do nothing ... OK\nDo nothing (again) ... OK\n\n1 feature (1 passed)\n2 scenarios (2 passed)\n2 steps (2 passed)\n' )
output with verbosity 2 must show only the scenario names .