def METHOD_NAME(self):
    # Ensure that native extraction is used on any test platform,
    # since it won't actually run.
    self.processor.env["USE_PYTHON_NATIVE_EXTRACTOR"] = True
    zipfile_mock = unittest.mock.MagicMock(spec=UnarchiverModule.zipfile.ZipFile)
    tarfile_mock = unittest.mock.MagicMock(spec=UnarchiverModule.tarfile.TarFile)
    native_cases: List[
        Tuple[str, UnarchiverModule.ExtractorType, Optional[str], str]
    ] = [
        ("autodetects zip format", zipfile_mock, None, "zip"),
        ("manual zip", zipfile_mock, "zip", "zip"),
        ("manual tar.gz", tarfile_mock, "tar_gzip", "tar_gzip"),
        ("manual tar.bz2", tarfile_mock, "tar_bzip2", "tar_bzip2"),
    ]
    for (
        subtest_name,
        expected_class,
        forced_archive_format,
        auto_archive_format,
    ) in native_cases:
        with unittest.mock.patch.dict(
            UnarchiverModule.NATIVE_EXTRACTORS,
            {auto_archive_format: expected_class},
            clear=True,
        ):
            with self.subTest(subtest_name, expected_class=expected_class):
                self.processor.env["archive_format"] = forced_archive_format
                self.processor.process()
                expected_class.assert_called_with(
                    self.processor.env["archive_path"], mode="r"
                )
                expected_class.return_value.extractall.assert_called()
    self.popen_mock.assert_not_called()