summaryrefslogtreecommitdiff
path: root/test/git/test_blob.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-29 20:16:37 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-29 20:16:37 +0200
commit18be0972304dc7f1a2a509595de7da689bddbefa (patch)
tree9f23a910a68120e64419ee8c03f37ed0790ab621 /test/git/test_blob.py
parent77cd6659b64cb1950a82e6a3cccdda94f15ae739 (diff)
downloadgitpython-18be0972304dc7f1a2a509595de7da689bddbefa.tar.gz
Removed blob.data property as there is no real reason for an exception to the rule of trying not to cache possibly heavy data. The data_stream method should be used instead
Diffstat (limited to 'test/git/test_blob.py')
-rw-r--r--test/git/test_blob.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/git/test_blob.py b/test/git/test_blob.py
index e5fca0a6..623ed179 100644
--- a/test/git/test_blob.py
+++ b/test/git/test_blob.py
@@ -10,14 +10,6 @@ from gitdb.util import hex_to_bin
class TestBlob(TestBase):
- def test_should_cache_data(self):
- bid = 'a802c139d4767c89dcad79d836d05f7004d39aac'
- blob = Blob(self.rorepo, hex_to_bin(bid))
- blob.data
- assert blob.data
- blob.size
- blob.size
-
def test_mime_type_should_return_mime_type_for_known_types(self):
blob = Blob(self.rorepo, **{'binsha': Blob.NULL_BIN_SHA, 'path': 'foo.png'})
assert_equal("image/png", blob.mime_type)