'Create temporary directory for testing extraction.'

def setUp(self):

    self.old_cwd = os.getcwd()
    self.tmpdir = tempfile.mkdtemp()
    self.addCleanup(shutil.rmtree, self.tmpdir)
    self.archive_path = os.path.join(TEST_DIR, self.archive)
    self.archive_lead_path = os.path.join(TEST_DIR, ('leadpath_%s' % self.archive))
    os.chdir(TEST_DIR)
