From fd47d6b11833870ce23102a3373b7a50a1b45d00 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 29 May 2008 02:09:28 -0700 Subject: 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 --- test/git/test_git.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/git/test_git.py') 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) ) -- cgit v1.2.1