@with_setup(prepare_stdout)
def test_output_snippets_with_groups_within_single_quotes_colorless():
 runner = Runner(feature_name('single-quoted-snippet'), verbosity=3, no_color=True)
 runner.run()
 assert_stdout_lines(u"\nFeature: single-quoted snippet proposal                          # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:1\n\n  Scenario: Propose matched groups                               # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:2\n    Given I have 'stuff here' and 'more @#$%\u02c6& bizar sutff h3r3' # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:3 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n1 step (1 undefined, 0 passed)\n\nYou 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'\n")

@ with_setup ( prepare_stdout ) def test_output_snippets_with_groups_within_single_quotes_colorless ( ) : runner = Runner ( feature_name ( 'single-quoted-snippet' ) , verbosity = 3 , no_color = True ) runner . run ( ) assert_stdout_lines ( u"\nFeature: single-quoted snippet proposal                          # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:1\n\n  Scenario: Propose matched groups                               # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:2\n    Given I have 'stuff here' and 'more @#$%\u02c6& bizar sutff h3r3' # tests/functional/output_features/single-quoted-snippet/single-quoted-snippet.feature:3 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n1 step (1 undefined, 0 passed)\n\nYou 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'\n" )
testing that the proposed snippet is clever enough to identify groups within single quotes .