def METHOD_NAME(self):
    d = tempfile.mkdtemp()
    try:
        files = self._create_files(d)
        tp = os.path.join(d, "test.tar")
        with open(tp, "wb") as fh:
            create_tar_from_files(fh, files)
        # Output should be deterministic.
        self.assertEqual(file_hash(tp), "01cd314e277f060e98c7de6c8ea57f96b3a2065c")
        with tarfile.open(tp, "r") as tf:
            self._verify_basic_tarfile(tf)
    finally:
        shutil.rmtree(d)