aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_GitRepository.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-05-31 14:30:22 +0200
committerGuido Günther <agx@sigxcpu.org>2012-05-31 16:34:12 +0200
commit829eea6abab9e28894f50f3766b7bd67110a5d53 (patch)
tree91294c631acc7f9b0053aaa46be36abfbb721b0a /tests/test_GitRepository.py
parenta116edd739e9ff529058a2d9df6fe67bdb17670d (diff)
gbp.git.repository: Add GitRepository.list_tree
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