diff options
author | Michael Trier <mtrier@gmail.com> | 2008-07-17 17:22:01 -0400 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-07-17 17:22:01 -0400 |
commit | c04c60f12d3684ecf961509d1b8db895e6f9aac0 (patch) | |
tree | 464108d7ba000759bb0b75523cde6d0125d1d6d8 /test/git/test_tree.py | |
parent | 564db4f20bd7189a50a12d612d56ed6391081e83 (diff) | |
download | gitpython-c04c60f12d3684ecf961509d1b8db895e6f9aac0.tar.gz |
Removed method_missing since it was only used in one place.
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r-- | test/git/test_tree.py | 8 |
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') |