@with_setup(prepare_stdout)
def test_output_snippets_with_normalized_unicode_names():
 runner = Runner(feature_name('latin-accents'), verbosity=3, no_color=True)
 runner.run()
 assert_stdout_lines(u'\nFuncionalidade: melhorar o output de snippets do lettuce                                      # tests/functional/output_features/latin-accents/latin-accents.feature:2\n  Como autor do lettuce                                                                       # tests/functional/output_features/latin-accents/latin-accents.feature:3\n  Eu quero ter um output refinado de snippets                                                 # tests/functional/output_features/latin-accents/latin-accents.feature:4\n  Para melhorar, de uma forma geral, a vida do programador                                    # tests/functional/output_features/latin-accents/latin-accents.feature:5\n\n  Cen\xe1rio: normalizar snippets com unicode                                                    # tests/functional/output_features/latin-accents/latin-accents.feature:7\n    Dado que eu tenho palavr\xf5es e outras situa\xe7\xf5es                                            # tests/functional/output_features/latin-accents/latin-accents.feature:8 (undefined)\n    E v\xe1rias palavras acentuadas s\xe3o \xfateis, tais como: "(\xe9,n\xe3o,l\xe9o,choror\xf3,ch\xe1cara,ep\xedgrafo)" # tests/functional/output_features/latin-accents/latin-accents.feature:9 (undefined)\n    Ent\xe3o eu fico feliz\xe3o                                                                     # tests/functional/output_features/latin-accents/latin-accents.feature:10 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n3 steps (3 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\'Dado que eu tenho palavr\xf5es e outras situa\xe7\xf5es\')\ndef dado_que_eu_tenho_palavroes_e_outras_situacoes(step):\n    assert False, \'This step must be implemented\'\n@step(u\'E v\xe1rias palavras acentuadas s\xe3o \xfateis, tais como: "([^"]*)"\')\ndef e_varias_palavras_acentuadas_sao_uteis_tais_como_group1(step, group1):\n    assert False, \'This step must be implemented\'\n@step(u\'Ent\xe3o eu fico feliz\xe3o\')\ndef entao_eu_fico_felizao(step):\n    assert False, \'This step must be implemented\'\n')

@ with_setup ( prepare_stdout ) def test_output_snippets_with_normalized_unicode_names ( ) : runner = Runner ( feature_name ( 'latin-accents' ) , verbosity = 3 , no_color = True ) runner . run ( ) assert_stdout_lines ( u'\nFuncionalidade: melhorar o output de snippets do lettuce                                      # tests/functional/output_features/latin-accents/latin-accents.feature:2\n  Como autor do lettuce                                                                       # tests/functional/output_features/latin-accents/latin-accents.feature:3\n  Eu quero ter um output refinado de snippets                                                 # tests/functional/output_features/latin-accents/latin-accents.feature:4\n  Para melhorar, de uma forma geral, a vida do programador                                    # tests/functional/output_features/latin-accents/latin-accents.feature:5\n\n  Cen\xe1rio: normalizar snippets com unicode                                                    # tests/functional/output_features/latin-accents/latin-accents.feature:7\n    Dado que eu tenho palavr\xf5es e outras situa\xe7\xf5es                                            # tests/functional/output_features/latin-accents/latin-accents.feature:8 (undefined)\n    E v\xe1rias palavras acentuadas s\xe3o \xfateis, tais como: "(\xe9,n\xe3o,l\xe9o,choror\xf3,ch\xe1cara,ep\xedgrafo)" # tests/functional/output_features/latin-accents/latin-accents.feature:9 (undefined)\n    Ent\xe3o eu fico feliz\xe3o                                                                     # tests/functional/output_features/latin-accents/latin-accents.feature:10 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n3 steps (3 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\'Dado que eu tenho palavr\xf5es e outras situa\xe7\xf5es\')\ndef dado_que_eu_tenho_palavroes_e_outras_situacoes(step):\n    assert False, \'This step must be implemented\'\n@step(u\'E v\xe1rias palavras acentuadas s\xe3o \xfateis, tais como: "([^"]*)"\')\ndef e_varias_palavras_acentuadas_sao_uteis_tais_como_group1(step, group1):\n    assert False, \'This step must be implemented\'\n@step(u\'Ent\xe3o eu fico feliz\xe3o\')\ndef entao_eu_fico_felizao(step):\n    assert False, \'This step must be implemented\'\n' )
testing that the proposed snippet is clever enough normalize method names even with latin accents .