summaryrefslogtreecommitdiff
path: root/test/git/test_git.py
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2008-05-29 02:19:18 -0700
committerDavid Aguilar <davvid@gmail.com>2008-05-29 02:19:18 -0700
commit80b60fafa94b794fa77fab85e1df66f52598f3ac (patch)
tree4c85b583f690b218851c22af956ec9fa61bafa86 /test/git/test_git.py
parent4e509130b7dfc97eeb4a517d6c9c65a8d6204234 (diff)
downloadgitpython-80b60fafa94b794fa77fab85e1df66f52598f3ac.tar.gz
tests: add a test for the new with_raw_output mechanism
This test ensures that trailing whitespace is preserved when git.foo( with_raw_output=True ) is called, and vice versa. Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r--test/git/test_git.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py
index 9984e4e0..c20ea7b5 100644
--- a/test/git/test_git.py
+++ b/test/git/test_git.py
@@ -49,3 +49,9 @@ class TestGit(object):
# Note: no trailiing newline
assert_equal( "git: 'this-does-not-exist' is not a git-command. See 'git --help'.",
self.git.this_does_not_exist(with_stderr=True) )
+
+ def test_it_does_not_strip_output_when_using_with_raw_output(self):
+ # Note: trailing newline
+ assert_equal( "git: 'this-does-not-exist' is not a git-command. See 'git --help'." + os.linesep,
+ self.git.this_does_not_exist(with_stderr=True,
+ with_raw_output=True) )