"""
-def test_pristine_has_commit():
- """
- Find delta on the pristine tar branch
-
- Methods tested:
- - L{gbp.deb.pristinetar.DebianPristineTar.has_commit}
- - L{gbp.pkg.pristinetar.PristineTar.get_commit}
-
- >>> import gbp.deb.git
- >>> repo = gbp.deb.git.DebianGitRepository(dirs['repo'])
- >>> repo.pristine_tar.has_commit('upstream', '1.0', 'bzip2')
- False
- >>> repo.pristine_tar.has_commit('upstream', '1.0', 'gzip')
- True
- >>> repo.pristine_tar.has_commit('upstream', '1.0')
- True
- >>> branch = repo.rev_parse('pristine-tar')
- >>> 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
- """
-
-
def test_pristine_tar_checkout():
"""
Checkout a tarball using pristine-tar