@with_setup(prepare_stdout)
def test_output_snippets_with_groups_within_redundant_quotes():
 runner = Runner(feature_name('redundant-steps-quotes'), verbosity=3, no_color=True)
 runner.run()
 assert_stdout_lines(u'\nFeature: avoid duplicating same snippet                          # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:1\n\n  Scenario: Propose matched groups                               # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:2\n    Given I have "stuff here" and "more @#$%\u02c6& bizar sutff h3r3" # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:3 (undefined)\n    Given I have "blablabla" and "12345"                         # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:4 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n2 steps (2 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_redundant_quotes ( ) : runner = Runner ( feature_name ( 'redundant-steps-quotes' ) , verbosity = 3 , no_color = True ) runner . run ( ) assert_stdout_lines ( u'\nFeature: avoid duplicating same snippet                          # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:1\n\n  Scenario: Propose matched groups                               # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:2\n    Given I have "stuff here" and "more @#$%\u02c6& bizar sutff h3r3" # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:3 (undefined)\n    Given I have "blablabla" and "12345"                         # tests/functional/output_features/redundant-steps-quotes/redundant-steps-quotes.feature:4 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n2 steps (2 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 avoid duplicating the same snippet .