summaryrefslogtreecommitdiff
path: root/test/git/test_blob.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-03 16:35:33 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-03 16:35:33 +0100
commit3cb5ba18ab1a875ef6b62c65342de476be47871b (patch)
treed287a2fad9f87856b6937ffd4abaed66c9066da7 /test/git/test_blob.py
parentdbc18b92362f60afc05d4ddadd6e73902ae27ec7 (diff)
downloadgitpython-3cb5ba18ab1a875ef6b62c65342de476be47871b.tar.gz
object: renamed id attribute to sha as it in fact is always being rewritten as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
Diffstat (limited to 'test/git/test_blob.py')
-rw-r--r--test/git/test_blob.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_blob.py b/test/git/test_blob.py
index 1b3b68f8..464cfd6b 100644
--- a/test/git/test_blob.py
+++ b/test/git/test_blob.py
@@ -18,13 +18,13 @@ class TestBlob(TestBase):
blob.size
def test_mime_type_should_return_mime_type_for_known_types(self):
- blob = Blob(self.rorepo, **{'id': 'abc', 'path': 'foo.png'})
+ 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, **{'id': 'abc','path': 'something'})
+ 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, **{'id': 'abc'})
+ blob = Blob(self.rorepo, **{'sha': 'abc'})
assert_equal('<git.Blob "abc">', repr(blob))