

def test_repository_archiving(self):
    '\n        Ensure our archive is created properly\n        '
    out_dir = tempfile.mkdtemp()
    repo = Repository(repo_url)
    repo.archive('master', out_dir)
    assert os.path.isfile(os.path.join(out_dir, 'stackstrap.yml'))
    shutil.rmtree(out_dir)
    out_dir = tempfile.mkdtemp()
    repo = Repository(repo_url)
    repo.archive('missing-meta-for-tests', out_dir)
    assert (not os.path.isfile(os.path.join(out_dir, 'stackstrap.yml')))
    shutil.rmtree(out_dir)

dataset/ETHPy150Open stackstrap/stackstrap/tests/test_repository.py RepositoryTestCase.test_repository_archiving/original