summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-02-17 21:07:58 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-02-18 14:19:18 +0100
commit180a5029bc3a2f0c1023c2c63b552766dc524c41 (patch)
tree27ea4cfbcd99a1f14e565cf65bc0b03732250937 /test/git/test_commit.py
parenta803803f40163c20594f12a5a0a536598daec458 (diff)
downloadgitpython-180a5029bc3a2f0c1023c2c63b552766dc524c41.tar.gz
git.commit: Added test to assure we handle the first commit correctly regarding its parents
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index 570ea65e..1e0338d6 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -88,6 +88,11 @@ class TestCommit(TestBase):
# traversal should stop when the beginning is reached
self.failUnlessRaises(StopIteration, first.traverse().next)
+ # parents of the first commit should be empty ( as the only parent has a null
+ # sha )
+ assert len(first.parents) == 0
+
+
@patch_object(Git, '_call_process')
def test_rev_list_bisect_all(self, git):
"""