summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-21 23:11:40 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-21 23:11:40 +0200
commit7b50af0a20bcc7280940ce07593007d17c5acabd (patch)
treea69e76cb1911f7098fded9a728229d2f119718cd /test/git/test_index.py
parent6662422ba52753f8b10bc053aba82bac3f2e1b9c (diff)
downloadgitpython-7b50af0a20bcc7280940ce07593007d17c5acabd.tar.gz
index: Added write_tree method including test
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r--test/git/test_index.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py
index 524f0778..a4e01054 100644
--- a/test/git/test_index.py
+++ b/test/git/test_index.py
@@ -87,5 +87,12 @@ class TestTree(TestCase):
assert isinstance(merge_blobs[0][1], Blob)
+ # writing a tree should fail with an unmerged index
+ self.failUnlessRaises(GitCommandError, tree_way_index.write_tree)
+
+ # removed unmerged entries
+ self.fail("remove unmerged")
+
+
def test_custom_commit(self):
self.fail("Custom commit:write tree, make commit with custom parents")