aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-20 11:31:38 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-20 11:57:03 +0100
commit1bce6428cff7c2c8788e07165dc3c4df2b69c3c8 (patch)
tree4bf23d3047cfac7d0e63384faf2a4da3125abcf9 /tests
parentca7d38746546f97436353fcf74e53926fb4c2cc7 (diff)
PristineTar: add verify
Diffstat (limited to 'tests')
-rw-r--r--tests/doctests/test_PristineTar.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py
index a792703..928ee28 100644
--- a/tests/doctests/test_PristineTar.py
+++ b/tests/doctests/test_PristineTar.py
@@ -137,6 +137,19 @@ def test_pristine_tar_checkout():
"""
+def test_pristine_tar_verify():
+ """
+ Verify a tarball using pristine-tar
+
+ Methods tested:
+ - L{gbp.deb.pristinetar.DebianPristineTar.verify}
+
+ >>> import gbp.deb.git
+ >>> repo = gbp.deb.git.DebianGitRepository(dirs['repo'])
+ >>> repo.pristine_tar.verify('../upstream_1.0.orig.tar.gz')
+ """
+
+
def test_pristine_tar_checkout_nonexistent():
"""
Checkout a tarball that does not exist using pristine-tar