diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 18:01:52 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 18:01:52 +0200 |
| commit | 3d9e7f1121d3bdbb08291c7164ad622350544a21 (patch) | |
| tree | 37a51b38bae80cf8c20e0fb507705fd3b0597f23 /test | |
| parent | 20c34a929a8b2871edd4fd44a38688e8977a4be6 (diff) | |
| download | gitpython-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')
| -rw-r--r-- | test/git/test_index.py | 5 |
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) |
