@skipUnlessHasGit
    def test_archive(self):
        success, archive_path = self.bb.repository.archive()
        self.assertTrue(success)
        self.assertTrue(os.path.exists(archive_path))
        self.assertTrue(is_zipfile(archive_path))
        # delete temporary file
        os.unlink(archive_path)
Prepare the master working set.
dataset/ETHPy150Open Sheeprider/BitBucket-api/bitbucket/tests/private/repository.py/ArchiveRepositoryAuthenticatedMethodsTest.test_archive--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/WorkingSet._build_master