summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-05-11 11:01:45 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-05-12 15:56:50 +0200
commit600fcbc1a2d723f8d51e5f5ab6d9e4c389010e1c (patch)
tree2be1a6f54390e18bc7b6c2318eae23e700c96df6 /test/git/test_repo.py
parent8caeec1b15645fa53ec5ddc6e990e7030ffb7c5a (diff)
downloadgitpython-600fcbc1a2d723f8d51e5f5ab6d9e4c389010e1c.tar.gz
Repo: Added comparison operators and hash operator including test
Cmd: AutoInterrupt handles boundary cases more gracefully as it can be that the os module suddenly becomes None if the interpreter is going down
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 9a762bd9..ce79402a 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -115,7 +115,7 @@ class TestRepo(TestBase):
# we can add a file to the index ( if we are not bare )
if not repo.bare:
- pass
+ pass
# END test repos with working tree
@@ -327,3 +327,8 @@ class TestRepo(TestBase):
remote = self.rorepo.create_remote("new_remote", "git@server:repo.git")
self.rorepo.delete_remote(remote)
+
+ def test_comparison_and_hash(self):
+ # this is only a preliminary test, more testing done in test_index
+ assert self.rorepo == self.rorepo and not (self.rorepo != self.rorepo)
+ assert len(set((self.rorepo, self.rorepo))) == 1