@with_setup(prepare_stdout)
def test_output_snippets_with_groups_within_single_quotes_colorful():
 runner = Runner(feature_name('single-quoted-snippet'), verbosity=3, no_color=False)
 runner.run()
 assert_stdout_lines(u"\n\x1b[1;37mFeature: single-quoted snippet proposal                          \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:1\x1b[0m\n\n\x1b[1;37m  Scenario: Propose matched groups                               \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:2\x1b[0m\n\x1b[0;33m    Given I have 'stuff here' and 'more @#$%\u02c6& bizar sutff h3r3' \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:3\x1b[0m\n\n\x1b[1;37m1 feature (\x1b[0;31m0 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 scenario (\x1b[0;31m0 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 step (\x1b[0;33m1 undefined\x1b[1;37m, \x1b[1;32m0 passed\x1b[1;37m)\x1b[0m\n\n\x1b[0;33mYou can implement step definitions for undefined steps with these snippets:\n\n# -*- coding: utf-8 -*-\nfrom lettuce import step\n\n@step(u'Given I have \\'([^\\']*)\\' and \\'([^\\']*)\\'')\ndef given_i_have_group1_and_group2(step, group1, group2):\n    assert False, 'This step must be implemented'\x1b[0m\n")

@ with_setup ( prepare_stdout ) def test_output_snippets_with_groups_within_single_quotes_colorful ( ) : runner = Runner ( feature_name ( 'single-quoted-snippet' ) , verbosity = 3 , no_color = False ) runner . run ( ) assert_stdout_lines ( u"\n\x1b[1;37mFeature: single-quoted snippet proposal                          \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:1\x1b[0m\n\n\x1b[1;37m  Scenario: Propose matched groups                               \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:2\x1b[0m\n\x1b[0;33m    Given I have 'stuff here' and 'more @#$%\u02c6& bizar sutff h3r3' \x1b[1;30m# tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:3\x1b[0m\n\n\x1b[1;37m1 feature (\x1b[0;31m0 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 scenario (\x1b[0;31m0 passed\x1b[1;37m)\x1b[0m\n\x1b[1;37m1 step (\x1b[0;33m1 undefined\x1b[1;37m, \x1b[1;32m0 passed\x1b[1;37m)\x1b[0m\n\n\x1b[0;33mYou can implement step definitions for undefined steps with these snippets:\n\n# -*- coding: utf-8 -*-\nfrom lettuce import step\n\n@step(u'Given I have \\'([^\\']*)\\' and \\'([^\\']*)\\'')\ndef given_i_have_group1_and_group2(step, group1, group2):\n    assert False, 'This step must be implemented'\x1b[0m\n" )
testing that the proposed snippet is clever enough to identify groups within single quotes .