'Test overflowing the stdout buffer'

def test_stdout(self):

    code = u'import    sys;s    =    "\\0"    *    (1024    *    16    +    1);sys.stdout.write(s);'
    (status, out, err) = git.Git.execute([u'python', u'-c', code], _raw=True)
    self.assertEqual(status, 0)
    self.assertEqual(len(out), ((1024 * 16) + 1))
    self.assertEqual(len(err), 0)
