aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_GitRepository.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r--tests/test_GitRepository.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index b4673397..328a65fc 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -616,6 +616,20 @@ def test_update_ref():
True
"""
+
+def test_list_tree():
+ """
+ Test git-ls-tree
+
+ Methods tested:
+ - L{gbp.git.GitRepository.list_tree}
+
+ >>> import gbp.git
+ >>> repo = gbp.git.GitRepository(repo_dir)
+ >>> repo.list_tree('HEAD')
+ [['100644', 'blob', '19af7398c894bc5e86e17259317e4db519e9241f', 'testfile']]
+ """
+
def test_update_submodules():
"""
Updating submodules if we don't have any is a noop