summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r--test/git/test_index.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py
index 8baf408c..5c643a67 100644
--- a/test/git/test_index.py
+++ b/test/git/test_index.py
@@ -101,7 +101,13 @@ class TestTree(TestBase):
# END for each blob
assert num_blobs == len(three_way_index.entries)
- def test_from_index(self):
+ @with_rw_repo('0.1.6')
+ def test_from_index(self, rw_repo):
# default Index instance points to our index
- index = Index(self.rorepo)
+ index = Index(rw_repo)
assert len(index.entries)
+
+ # write the file back
+ index.write()
+
+ # could sha it, or check stats