summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-23 11:07:04 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-23 11:07:04 +0200
commit3d3a24b22d340c62fafc0e75a349c0ffe34d99d7 (patch)
treef4487593b2b67b5c50b96dcb398a5cd0b3821ab0 /test/git/test_repo.py
parenta10aa36bc6a82bd50df6f3df7d6b7ce04a7070f1 (diff)
downloadgitpython-3d3a24b22d340c62fafc0e75a349c0ffe34d99d7.tar.gz
Added repo.index property including simple test, and additional ideas in the TODO list
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index b02610f4..4995d901 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -170,7 +170,11 @@ class TestRepo(TestBase):
def test_head(self):
assert self.rorepo.head.reference.object == self.rorepo.active_branch.object
-
+
+ def test_index(self):
+ index = self.rorepo.index
+ assert isinstance(index, IndexFile)
+
def test_tag(self):
assert self.rorepo.tag('refs/tags/0.1.5').commit