'Test that we don\'t have issues processing large number of jobs and
outputting the result if the encoding is not set.'

def test_stream_input_output_no_encoding_exceed_recursion(self):

    console_out = io.BytesIO()
    input_file = os.path.join(self.fixtures_path, 'large-number-of-jobs-001.yaml')
    with io.open(input_file, 'r') as f:
        with mock.patch('sys.stdout', console_out):
            console_out.encoding = None
            with mock.patch('sys.stdin', f):
                args = ['test']
                self.execute_jenkins_jobs_with_args(args)
