summaryrefslogtreecommitdiff
path: root/test/git/test_git.py
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2008-05-29 02:09:28 -0700
committerDavid Aguilar <davvid@gmail.com>2008-05-29 02:09:28 -0700
commitfd47d6b11833870ce23102a3373b7a50a1b45d00 (patch)
tree6f9a0ee4445ad7581eae98d93a5e7ba26c809821 /test/git/test_git.py
parent58fa2c401856f93712ae6cc45d4dc3458ee4b4f4 (diff)
downloadgitpython-fd47d6b11833870ce23102a3373b7a50a1b45d00.tar.gz
tests: add a git.foo( with_status=True ) testcase
test_git.py now tests the new git.foo( with_status=True ) mechanism. Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'test/git/test_git.py')
-rw-r--r--test/git/test_git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py
index 8ea9b8ef..63343d91 100644
--- a/test/git/test_git.py
+++ b/test/git/test_git.py
@@ -32,3 +32,6 @@ class TestGit(object):
assert_equal( "70c379b63ffa0795fdbfbc128e5a2818397b7ef8",
self.git.hash_object(istream=fh, stdin=True) )
fh.close()
+
+ def test_it_returns_status_and_ignores_stderr(self):
+ assert_equal( (1, ""), self.git.this_does_not_exist(with_status=True) )