From c04c60f12d3684ecf961509d1b8db895e6f9aac0 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Thu, 17 Jul 2008 17:22:01 -0400 Subject: Removed method_missing since it was only used in one place. --- test/git/test_tree.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/git/test_tree.py') 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') -- cgit v1.2.1