diff options
author | David Aguilar <davvid@gmail.com> | 2008-05-29 02:17:13 -0700 |
---|---|---|
committer | David Aguilar <davvid@gmail.com> | 2008-05-29 02:17:13 -0700 |
commit | 7d49273897bd317323e0a3bbbc01b76e83370f0c (patch) | |
tree | dd55affa00a6255dfeafe79dfb7747243137bd08 /test/git/test_git.py | |
parent | c4d5e7c9dab813adf9bfd8198bb9bb00c9a9503b (diff) | |
download | gitpython-7d49273897bd317323e0a3bbbc01b76e83370f0c.tar.gz |
tests: add a test for the new with_stderr mechanism
This test ensures that stderr is merged into stdout when
git.foo( with_stderr=True ) is called.
Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r-- | test/git/test_git.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py index 47066941..9984e4e0 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -44,3 +44,8 @@ class TestGit(object): except errors.GitCommandError, e: error_raised = True assert_equal( True, error_raised ) + + def test_it_returns_stderr_in_output(self): + # 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) ) |