'Returns whether the app (of the same version) is in the registry'

def contains(self, app):

    try:
        existing = self._apps[app.name]
        return (existing.version == app.version)
    except KeyError:
        return False
