diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-23 15:50:14 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-23 15:50:14 +0200 |
commit | 57050184f3d962bf91511271af59ee20f3686c3f (patch) | |
tree | 67c56788c74b87e8720562556168f57b439a6ab1 /test/git/test_index.py | |
parent | 778234d544b3f58dd415aaf10679d15b01a5281f (diff) | |
parent | 1e2265a23ecec4e4d9ad60d788462e7f124f1bb7 (diff) | |
download | gitpython-57050184f3d962bf91511271af59ee20f3686c3f.tar.gz |
Merge branch 'fromtree'
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r-- | test/git/test_index.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py index d0063e89..35580135 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -580,7 +580,7 @@ class TestIndex(TestBase): # write all trees and compare them # its important to have a few submodules in there too - max_count = 100 + max_count = 25 count = 0 for commit in rw_repo.head.commit.traverse(): if count >= max_count: @@ -593,3 +593,14 @@ class TestIndex(TestBase): assert index.write_tree() == orig_tree # END for each commit + def test_index_new(self): + 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 + + |