'Returns all the entities of assertions for a subject, disregarding
whether the assertion still is valid or not.
:param name_id: The subject identifier, a NameID instance
:return: A possibly empty list of entity identifiers'

def entities(self, name_id):

    cni = code(name_id)
    return self._db[cni].keys()
