def test_fetched_repository_has_same_version(self): dir = mkdtemp() repodir = fetch_repository(repository=self.repo_two, workdir=dir) self.assertEquals((2, 0, 12), compute_version(get_git_describe(repository_directory=repodir, fix_environment=True))) rmtree(dir)
def test_repository_fetching(self): dir = mkdtemp() repodir = fetch_repository(repository=self.repo_two, workdir=dir) self.assertEquals([".git", "second.txt"].sort(), os.listdir(repodir).sort()) rmtree(dir)