diff options
author | David Aguilar <davvid@gmail.com> | 2008-05-31 15:33:47 -0700 |
---|---|---|
committer | David Aguilar <davvid@gmail.com> | 2008-05-31 15:33:47 -0700 |
commit | 12b32450c210cec1fdd8b2c19d564776e8054aa3 (patch) | |
tree | aa2c099f5d937d295ef78838a46d7614fef27c35 /test/git/test_git.py | |
parent | 55f0245f3ee538ec49e84bcb28c33b135a07f0b9 (diff) | |
download | gitpython-12b32450c210cec1fdd8b2c19d564776e8054aa3.tar.gz |
tests: ensure cmd.execute can handle large output
This test case ensures that cmd.execute can always handle
large command outputs. This test does so by reading a 700k
file into memory.
Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r-- | test/git/test_git.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py index 2b2464b0..d11bd661 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -51,3 +51,7 @@ class TestGit(object): r"(\. See 'git --help'\.)?" + os.linesep, self.git.this_does_not_exist(with_stderr=True, with_raw_output=True)) + + def test_it_handles_large_input(self): + output = self.git.execute(["cat", "/bin/bash"]) + assert( len(output) > 4096 * 1024 ) # at least 4k |