def METHOD_NAME(self):
    touch(pjoin(self.eclass_dir, "foo.eclass"))
    self.addon.update_cache()
    assert list(self.addon.eclasses) == ["foo"]
    with patch("pkgcheck.addons.caches.CachedAddon.save_cache") as save_cache:
        self.addon.update_cache()
        # verify the cache was loaded and not regenerated
        save_cache.assert_not_called()
        self.addon.update_cache(force=True)
        # and is regenerated on a forced cache update
        save_cache.assert_called_once()