summaryrefslogtreecommitdiff
path: root/test/git/test_tree.py
diff options
context:
space:
mode:
authorD.Dotsenko <dotsa@hotmail.com>2010-10-29 22:07:48 -0700
committerD.Dotsenko <dotsa@hotmail.com>2010-10-29 22:07:48 -0700
commit61dbe884a2b11a53b7a6c774da2560c1c776c4de (patch)
tree97df9f52e0befa8432b524aedcf571c501b23e5f /test/git/test_tree.py
parentcfd2121eda5fadd18fba6819f90efb8868fad14a (diff)
downloadgitpython-61dbe884a2b11a53b7a6c774da2560c1c776c4de.tar.gz
Fixing recursion issue introduced with submodule support
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r--test/git/test_tree.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/git/test_tree.py b/test/git/test_tree.py
index 0ab6b9bc..6d6a72c6 100644
--- a/test/git/test_tree.py
+++ b/test/git/test_tree.py
@@ -48,7 +48,11 @@ class TestTree(object):
text = fixture('ls_tree_commit').split("\n")[1]
tree = Tree.content_from_string(None, text)
- assert_none(tree)
+
+ assert_equal(Submodule, tree.__class__)
+ assert_equal("d35b34c6e931b9da8f6941007a92c9c9a9b0141a", tree.id)
+ # assert_equal("100644", tree.mode) # mode of submodule is irrelevant.
+ assert_equal("bar", tree.name)
@raises(TypeError)
def test_content_from_string_invalid_type_should_raise(self):