summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 18:01:52 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 18:01:52 +0200
commit3d9e7f1121d3bdbb08291c7164ad622350544a21 (patch)
tree37a51b38bae80cf8c20e0fb507705fd3b0597f23 /test/git/test_index.py
parent20c34a929a8b2871edd4fd44a38688e8977a4be6 (diff)
downloadgitpython-3d9e7f1121d3bdbb08291c7164ad622350544a21.tar.gz
Index now behaves more like the default index if no explicit stream is given. It will lazily read its data on first access
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r--test/git/test_index.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py
index 10ffb79d..8baf408c 100644
--- a/test/git/test_index.py
+++ b/test/git/test_index.py
@@ -101,4 +101,7 @@ class TestTree(TestBase):
# END for each blob
assert num_blobs == len(three_way_index.entries)
-
+ def test_from_index(self):
+ # default Index instance points to our index
+ index = Index(self.rorepo)
+ assert len(index.entries)