def METHOD_NAME(self):
    tempdir = self.get_temp_dir()
    archive = os.path.join(tempdir, "out.tar.gz")
    directory = os.path.join(tempdir, "src")
    os.mkdir(directory)
    self._run_tool(
        [
            archive,
            self._write_file(directory, "1.txt", "one"),
            self._write_file(directory, "2.txt", "two"),
        ]
    )
    with gzip.open(archive) as gzip_file:
        with tarfile.open(fileobj=gzip_file, mode="r:") as tar_file:
            self.assertEqual(
                tar_file.getnames(), ["1.txt", "2.txt"]
            )  # in order
            self.assertEqual(tar_file.extractfile("1.txt").read(), b"one")
            self.assertEqual(tar_file.extractfile("2.txt").read(), b"two")