diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-20 11:31:38 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-20 11:57:03 +0100 |
commit | 1bce6428cff7c2c8788e07165dc3c4df2b69c3c8 (patch) | |
tree | 4bf23d3047cfac7d0e63384faf2a4da3125abcf9 /tests/doctests/test_PristineTar.py | |
parent | ca7d38746546f97436353fcf74e53926fb4c2cc7 (diff) |
PristineTar: add verify
Diffstat (limited to 'tests/doctests/test_PristineTar.py')
-rw-r--r-- | tests/doctests/test_PristineTar.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index a7927032..928ee286 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 |