@with_setup(prepare_stdout)
def test_output_when_could_not_find_features():
 path = fs.relpath(join(abspath(dirname(__file__)), 'no_features', 'unexistent-folder'))
 runner = Runner(path, verbosity=3, no_color=False)
 runner.run()
 assert_stdout_lines(('\x1b[1;31mOops!\x1b[0m\n\x1b[1;37mcould not find features at \x1b[1;33m./%s\x1b[0m\n' % path))

@ with_setup ( prepare_stdout ) def test_output_when_could_not_find_features ( ) : path = fs . relpath ( join ( abspath ( dirname ( __file__ ) ) , 'no_features' , 'unexistent-folder' ) ) runner = Runner ( path , verbosity = 3 , no_color = False ) runner . run ( ) assert_stdout_lines ( ( '\x1b[1;31mOops!\x1b[0m\n\x1b[1;37mcould not find features at \x1b[1;33m./%s\x1b[0m\n' % path ) )
testing the colorful output of many successful features .