diff options
Diffstat (limited to 'tests/doctests/test_PristineTar.py')
-rw-r--r-- | tests/doctests/test_PristineTar.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index 15c614cf..dfeb7193 100644 --- a/tests/doctests/test_PristineTar.py +++ b/tests/doctests/test_PristineTar.py @@ -134,9 +134,18 @@ def test_pristine_has_commit(): >>> repo.pristine_tar.has_commit('upstream', '1.0') True >>> branch = repo.rev_parse('pristine-tar') - >>> commit = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') + >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') >>> branch == commit True + >>> sig + True + >>> repo.pristine_tar.commit('../upstream_1.0.orig.tar.gz', 'upstream') + >>> branch = repo.rev_parse('pristine-tar') + >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') + >>> branch == commit + True + >>> sig + False """ |