summaryrefslogtreecommitdiff
path: root/test/git/test_blob.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2008-07-17 17:22:01 -0400
committerMichael Trier <mtrier@gmail.com>2008-07-17 17:22:01 -0400
commitc04c60f12d3684ecf961509d1b8db895e6f9aac0 (patch)
tree464108d7ba000759bb0b75523cde6d0125d1d6d8 /test/git/test_blob.py
parent564db4f20bd7189a50a12d612d56ed6391081e83 (diff)
downloadgitpython-c04c60f12d3684ecf961509d1b8db895e6f9aac0.tar.gz
Removed method_missing since it was only used in one place.
Diffstat (limited to 'test/git/test_blob.py')
-rw-r--r--test/git/test_blob.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/git/test_blob.py b/test/git/test_blob.py
index b7f44ff0..68afdbd8 100644
--- a/test/git/test_blob.py
+++ b/test/git/test_blob.py
@@ -12,7 +12,7 @@ class TestBlob(object):
def setup(self):
self.repo = Repo(GIT_REPO)
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_should_return_blob_contents(self, git):
git.return_value = fixture('cat_file_blob')
blob = Blob(self.repo, **{'id': 'abc'})
@@ -20,7 +20,7 @@ class TestBlob(object):
assert_true(git.called)
assert_equal(git.call_args, (('cat_file', 'abc'), {'p': True}))
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_should_cache_data(self, git):
git.return_value = fixture('cat_file_blob')
blob = Blob(self.repo, **{'id': 'abc'})
@@ -30,7 +30,7 @@ class TestBlob(object):
assert_equal(git.call_count, 1)
assert_equal(git.call_args, (('cat_file', 'abc'), {'p': True}))
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_should_return_file_size(self, git):
git.return_value = fixture('cat_file_blob_size')
blob = Blob(self.repo, **{'id': 'abc'})
@@ -38,7 +38,7 @@ class TestBlob(object):
assert_true(git.called)
assert_equal(git.call_args, (('cat_file', 'abc'), {'s': True}))
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_should_cache_file_size(self, git):
git.return_value = fixture('cat_file_blob_size')
blob = Blob(self.repo, **{'id': 'abc'})
@@ -56,7 +56,7 @@ class TestBlob(object):
blob = Blob(self.repo, **{'id': 'abc'})
assert_equal("text/plain", blob.mime_type)
- @patch(Git, 'method_missing')
+ @patch(Git, '_call_process')
def test_should_display_blame_information(self, git):
git.return_value = fixture('blame')
b = Blob.blame(self.repo, 'master', 'lib/git.py')