summaryrefslogtreecommitdiff
path: root/test/git/test_blob.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_blob.py')
-rw-r--r--test/git/test_blob.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/git/test_blob.py b/test/git/test_blob.py
index 464cfd6b..cf70cb8c 100644
--- a/test/git/test_blob.py
+++ b/test/git/test_blob.py
@@ -8,23 +8,23 @@ from test.testlib import *
from git import *
class TestBlob(TestBase):
-
- def test_should_cache_data(self):
- bid = 'a802c139d4767c89dcad79d836d05f7004d39aac'
- blob = Blob(self.rorepo, 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, **{'sha': 'abc', 'path': 'foo.png'})
- assert_equal("image/png", blob.mime_type)
+
+ def test_should_cache_data(self):
+ bid = 'a802c139d4767c89dcad79d836d05f7004d39aac'
+ blob = Blob(self.rorepo, 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, **{'sha': 'abc', 'path': 'foo.png'})
+ assert_equal("image/png", blob.mime_type)
- def test_mime_type_should_return_text_plain_for_unknown_types(self):
- blob = Blob(self.rorepo, **{'sha': 'abc','path': 'something'})
- assert_equal("text/plain", blob.mime_type)
+ def test_mime_type_should_return_text_plain_for_unknown_types(self):
+ blob = Blob(self.rorepo, **{'sha': 'abc','path': 'something'})
+ assert_equal("text/plain", blob.mime_type)
- def test_should_return_appropriate_representation(self):
- blob = Blob(self.rorepo, **{'sha': 'abc'})
- assert_equal('<git.Blob "abc">', repr(blob))
+ def test_should_return_appropriate_representation(self):
+ blob = Blob(self.rorepo, **{'sha': 'abc'})
+ assert_equal('<git.Blob "abc">', repr(blob))