@with_setup(prepare_stdout)
def test_output_with_failed_colorless_with_table():
 runner = Runner(feature_name('failed_table'), verbosity=3, no_color=True)
 runner.run()
 assert_stdout_lines_with_traceback((u'\nFeature: Table Fail                           # tests/functional/output_features/failed_table/failed_table.feature:1\n\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n    Given I have a dumb step that passes \u2665    # tests/functional/output_features/failed_table/failed_table_steps.py:20\n    And this one fails                        # tests/functional/output_features/failed_table/failed_table_steps.py:24\n    Traceback (most recent call last):\n      File "%(lettuce_core_file)s", line %(call_line)d, in __call__\n        ret = self.function(self.step, *args, **kw)\n      File "%(step_file)s", line 25, in tof\n        assert False\n    AssertionError\n    Then this one will be skipped             # tests/functional/output_features/failed_table/failed_table_steps.py:28\n    And this one will be skipped              # tests/functional/output_features/failed_table/failed_table_steps.py:28\n    And this one does not even has definition # tests/functional/output_features/failed_table/failed_table.feature:12 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n5 steps (1 failed, 2 skipped, 1 undefined, 1 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\'And this one does not even has definition\')\ndef and_this_one_does_not_even_has_definition(step):\n    assert False, \'This step must be implemented\'\n\nList of failed scenarios:\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n\n' % {'lettuce_core_file': lettuce_path('core.py'), 'step_file': abspath(lettuce_path('..', 'tests', 'functional', 'output_features', 'failed_table', 'failed_table_steps.py')), 'call_line': call_line}))

@ with_setup ( prepare_stdout ) def test_output_with_failed_colorless_with_table ( ) : runner = Runner ( feature_name ( 'failed_table' ) , verbosity = 3 , no_color = True ) runner . run ( ) assert_stdout_lines_with_traceback ( ( u'\nFeature: Table Fail                           # tests/functional/output_features/failed_table/failed_table.feature:1\n\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n    Given I have a dumb step that passes \u2665    # tests/functional/output_features/failed_table/failed_table_steps.py:20\n    And this one fails                        # tests/functional/output_features/failed_table/failed_table_steps.py:24\n    Traceback (most recent call last):\n      File "%(lettuce_core_file)s", line %(call_line)d, in __call__\n        ret = self.function(self.step, *args, **kw)\n      File "%(step_file)s", line 25, in tof\n        assert False\n    AssertionError\n    Then this one will be skipped             # tests/functional/output_features/failed_table/failed_table_steps.py:28\n    And this one will be skipped              # tests/functional/output_features/failed_table/failed_table_steps.py:28\n    And this one does not even has definition # tests/functional/output_features/failed_table/failed_table.feature:12 (undefined)\n\n1 feature (0 passed)\n1 scenario (0 passed)\n5 steps (1 failed, 2 skipped, 1 undefined, 1 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\'And this one does not even has definition\')\ndef and_this_one_does_not_even_has_definition(step):\n    assert False, \'This step must be implemented\'\n\nList of failed scenarios:\n  Scenario: See it fail                       # tests/functional/output_features/failed_table/failed_table.feature:2\n\n' % { 'lettuce_core_file' : lettuce_path ( 'core.py' ) , 'step_file' : abspath ( lettuce_path ( '..' , 'tests' , 'functional' , 'output_features' , 'failed_table' , 'failed_table_steps.py' ) ) , 'call_line' : call_line } ) )
testing the colorless output of failed with table .