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.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py
index ae754430..35580135 100644
--- a/test/git/test_index.py
+++ b/test/git/test_index.py
@@ -594,6 +594,13 @@ class TestIndex(TestBase):
# END for each commit
def test_index_new(self):
- self.fail("todo index new")
+ B = self.rorepo.tree("6d9b1f4f9fa8c9f030e3207e7deacc5d5f8bba4e")
+ H = self.rorepo.tree("25dca42bac17d511b7e2ebdd9d1d679e7626db5f")
+ M = self.rorepo.tree("e746f96bcc29238b79118123028ca170adc4ff0f")
+
+ for args in ((B,), (B,H), (B,H,M)):
+ index = IndexFile.new(self.rorepo, *args)
+ assert isinstance(index, IndexFile)
+ # END for each arg tuple