diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 19:46:24 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 19:46:24 +0200 |
commit | 832b56394b079c9f6e4c777934447a9e224facfe (patch) | |
tree | 5f795bededdc1efe13902f2f77b9b7771d98d597 /test/git/test_base.py | |
parent | c5df44408218003eb49e3b8fc94329c5e8b46c7d (diff) | |
download | gitpython-832b56394b079c9f6e4c777934447a9e224facfe.tar.gz |
Refs are now truly dynamic - this costs a little bit of (persistent command) work, but assures refs behave as expected
Diffstat (limited to 'test/git/test_base.py')
-rw-r--r-- | test/git/test_base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py index 6e3aad7f..402cdba3 100644 --- a/test/git/test_base.py +++ b/test/git/test_base.py @@ -78,9 +78,10 @@ class TestBase(object): for head in self.repo.heads: head.name head.path - cur_obj = head.object - del( head.object ) - assert cur_obj == head.object + prev_object = head.object + cur_object = head.object + assert prev_object == cur_object # represent the same git object + assert prev_object is not cur_object # but are different instances # END for each head def test_get_object_type_by_name(self): |