def can_assume_client_id(self, assumed_client_id):
    if self.__client_id_validated:
        return ((self.client_id == '*') or (self.client_id == assumed_client_id))
    elif ((self.client_id is None) or (self.client_id == '*')):
        return True
    else:
        return (self.client_id == assumed_client_id)
def can_assume_client_id(self, assumed_client_id):
    if self.__client_id_validated:
        return ((self.client_id == '*') or (self.client_id == assumed_client_id))
    elif ((self.client_id is None) or (self.client_id == '*')):
        return True
    else:
        return (self.client_id == assumed_client_id)