diff options
-rw-r--r-- | test/git/test_git.py | 6 | ||||
-rw-r--r-- | test/testlib/helper.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/git/test_git.py b/test/git/test_git.py index 61b90a5f..e452e68b 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -55,3 +55,9 @@ class TestGit(object): def test_it_handles_large_input(self): output = self.git.execute(["cat", "/bin/bash"]) assert_true(len(output) > 4096) # at least 4k + + @patch(Git, 'execute') + def test_it_ignores_false_kwargs(self, git): + # this_should_not_be_ignored=False implies it *should* be ignored + output = self.git.version(pass_this_kwarg=False) + assert_true("pass_this_kwarg" not in git.call_args[1]) diff --git a/test/testlib/helper.py b/test/testlib/helper.py index 0e3f6bf5..ccc7f0ac 100644 --- a/test/testlib/helper.py +++ b/test/testlib/helper.py @@ -3,7 +3,7 @@ import os GIT_REPO = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) def fixture_path(name): - test_dir = os.path.dirname( os.path.dirname(__file__) ) + test_dir = os.path.dirname(os.path.dirname(__file__)) return os.path.join(test_dir, "fixtures", name) def fixture(name): |