def mock_importer(self):
        YAMLLoader._get_import_resolver = self.mock_resolver
Mock the import resolver to a fake one that raises import error.
dataset/ETHPy150Open miracle2k/webassets/tests/test_loaders.py/TestYAMLCustomFilters.mock_importer