@with_setup(prepare_stdout)
def test_output_with_success_colorful():
 runner = Runner(join(abspath(dirname(__file__)), 'output_features', 'runner_features'), verbosity=3, no_color=False)
 runner.run()
 assert_stdout_lines('\n\x1b[1;37mFeature: Dumb feature                    \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:1\x1b[0m\n\x1b[1;37m  In order to test success               \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:2\x1b[0m\n\x1b[1;37m  As a programmer                        \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:3\x1b[0m\n\x1b[1;37m  I want to see that the output is green \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:4\x1b[0m\n\n\x1b[1;37m  Scenario: Do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:6\x1b[0m\n\x1b[1;30m    Given I do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/dumb_steps.py:6\x1b[0m\n\x1b[A\x1b[1;32m    Given I do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/dumb_steps.py:6\x1b[0m\n\n\x1b[1;37m1 feature (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 scenario (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 step (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n')

@ with_setup ( prepare_stdout ) def test_output_with_success_colorful ( ) : runner = Runner ( join ( abspath ( dirname ( __file__ ) ) , 'output_features' , 'runner_features' ) , verbosity = 3 , no_color = False ) runner . run ( ) assert_stdout_lines ( '\n\x1b[1;37mFeature: Dumb feature                    \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:1\x1b[0m\n\x1b[1;37m  In order to test success               \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:2\x1b[0m\n\x1b[1;37m  As a programmer                        \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:3\x1b[0m\n\x1b[1;37m  I want to see that the output is green \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:4\x1b[0m\n\n\x1b[1;37m  Scenario: Do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/first.feature:6\x1b[0m\n\x1b[1;30m    Given I do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/dumb_steps.py:6\x1b[0m\n\x1b[A\x1b[1;32m    Given I do nothing                   \x1b[1;30m# tests/functional/output_features/runner_features/dumb_steps.py:6\x1b[0m\n\n\x1b[1;37m1 feature (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 scenario (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 step (\x1b[1;32m1 passed\x1b[1;37m)\x1b[0m\n' )
testing the output of a successful feature .