def METHOD_NAME(self):
    """Set up the test case: called by the unit test system"""
    self.cwd = os.getcwd()
    test_data_dir = os.path.join(
        FreeCAD.getHomePath(), "Mod", "AddonManager", "AddonManagerTest", "data"
    )
    git_repo_zip = os.path.join(test_data_dir, "test_repo.zip")
    self.test_dir = os.path.join(
        tempfile.gettempdir(), "FreeCADTesting", "AddonManagerTests", "Git"
    )
    os.makedirs(self.test_dir, exist_ok=True)
    self.test_repo_remote = os.path.join(self.test_dir, "TEST_REPO_REMOTE")
    if os.path.exists(self.test_repo_remote):
        # Make sure any old copy that got left around is deleted
        self._rmdir(self.test_repo_remote)
    if not os.path.exists(git_repo_zip):
        self.skipTest("Can't find test repo")
        return
    with ZipFile(git_repo_zip, "r") as zip_repo:
        zip_repo.extractall(self.test_repo_remote)
    self.test_repo_remote = os.path.join(self.test_repo_remote, "test_repo")
    try:
        self.git = GitManager()
    except NoGitFound:
        self.skipTest("No git found")