From dc1fcf372878240e0a1af20641d361f14aea7252 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Fri, 31 Oct 2008 22:46:47 +0100 Subject: Get compatible with mock0.4 (to some extend ;)). Just that Michael doesn't need to do the same boring replacing I did. (cherry picked from commit 10c62aa69193a8bc7b46ca24c2ad1d5008489665) --- test/git/test_git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_git.py') diff --git a/test/git/test_git.py b/test/git/test_git.py index 4618ecf2..3a3dc564 100644 --- a/test/git/test_git.py +++ b/test/git/test_git.py @@ -13,7 +13,7 @@ class TestGit(object): base = os.path.join(os.path.dirname(__file__), "../..") self.git = Git(base) - @patch(Git, 'execute') + @patch_object(Git, 'execute') def test_call_process_calls_execute(self, git): git.return_value = '' self.git.version() @@ -51,7 +51,7 @@ class TestGit(object): output = self.git.execute(["cat", "/bin/bash"]) assert_true(len(output) > 4096) # at least 4k - @patch(Git, 'execute') + @patch_object(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) -- cgit v1.2.1