def METHOD_NAME(self):
    # non-eclass files are ignored
    for f in ("foo.eclass", "bar"):
        touch(pjoin(self.eclass_dir, f))
    self.addon.update_cache()
    assert list(self.addon.eclasses) == ["foo"]
    assert not self.addon.deprecated