def METHOD_NAME(self):
    # Importing font_manager should have no side effect of creating
    # the font cache. Regression test for enthought/enable#362
    module_name = "kiva.fonttools.font_manager"
    modules = sys.modules
    original_module = modules.pop(module_name)
    with change_ets_app_dir(self.temp_dir) as cache_path:
        try:
            importlib.import_module(module_name)
        except Exception:
            raise
        else:
            # A cache is not created
            self.assertFalse(os.path.exists(cache_path))
        finally:
            modules[module_name] = original_module