diff options
author | D.Dotsenko <dotsa@hotmail.com> | 2010-10-29 22:07:48 -0700 |
---|---|---|
committer | D.Dotsenko <dotsa@hotmail.com> | 2010-10-29 22:07:48 -0700 |
commit | 61dbe884a2b11a53b7a6c774da2560c1c776c4de (patch) | |
tree | 97df9f52e0befa8432b524aedcf571c501b23e5f /test/git/test_tree.py | |
parent | cfd2121eda5fadd18fba6819f90efb8868fad14a (diff) | |
download | gitpython-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.py | 6 |
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): |