def setUp(self):

        # Create temp dir
        self.work_dir = tempfile.mkdtemp(suffix = '-testing-xpkg')
        print self.work_dir

        # Create the user cache dir
        self.user_cache_dir = os.path.join(self.work_dir, 'user_cache')

        # Mock the user dir
        os.environ[core.xpkg_local_cache_var] = self.user_cache_dir

        # Create the env_dir
        self.env_dir = os.path.join(self.work_dir, 'env')

        # Create our binary package repository dir
        self.repo_dir = os.path.join(self.work_dir, 'repo')
        util.ensure_dir(self.repo_dir)

        # Save the environment
        self._envStorage = util.EnvStorage(store = True)
Creates repo and environment directory.
dataset/ETHPy150Open jlisee/xpkg/python/tests/fulltests.py/TestBase.setUp