summaryrefslogtreecommitdiff
path: root/test/git/test_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r--test/git/test_tree.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/git/test_tree.py b/test/git/test_tree.py
index 2c7fdd58..957b8962 100644
--- a/test/git/test_tree.py
+++ b/test/git/test_tree.py
@@ -12,7 +12,7 @@ class TestTree(object):
self.repo = Repo(GIT_REPO)
self.tree = Tree(self.repo)
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_contents_should_cache(self, git):
git.return_value = fixture('ls_tree_a') + fixture('ls_tree_b')
@@ -56,7 +56,7 @@ class TestTree(object):
self.tree.content_from_string(None, "040000 bogus 650fa3f0c17f1edb4ae53d8dcca4ac59d86e6c44 test")
@patch(Blob, 'size')
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_slash(self, blob, git):
git.return_value = fixture('ls_tree_a')
blob.return_value = 1
@@ -70,7 +70,7 @@ class TestTree(object):
assert_equal(git.call_args, (('ls_tree', 'master'), {}))
@patch(Blob, 'size')
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_slash_with_zero_length_file(self, blob, git):
git.return_value = fixture('ls_tree_a')
blob.return_value = 0
@@ -83,7 +83,7 @@ class TestTree(object):
assert_true(git.called)
assert_equal(git.call_args, (('ls_tree', 'master'), {}))
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_slash_with_commits(self, git):
git.return_value = fixture('ls_tree_commit')