diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 16:35:33 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 16:35:33 +0100 |
commit | 3cb5ba18ab1a875ef6b62c65342de476be47871b (patch) | |
tree | d287a2fad9f87856b6937ffd4abaed66c9066da7 /test/git/test_base.py | |
parent | dbc18b92362f60afc05d4ddadd6e73902ae27ec7 (diff) | |
download | gitpython-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_base.py')
-rw-r--r-- | test/git/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py index 1b78786a..497f90fb 100644 --- a/test/git/test_base.py +++ b/test/git/test_base.py @@ -32,13 +32,13 @@ class TestBase(TestBase): for obj_type, (typename, hexsha) in zip(types, self.type_tuples): item = obj_type(self.rorepo,hexsha) num_objs += 1 - assert item.id == hexsha + assert item.sha == hexsha assert item.type == typename assert item.size assert item.data assert item == item assert not item != item - assert str(item) == item.id + assert str(item) == item.sha assert repr(item) s.add(item) |