'compare function for clusterrole'

def compare(self, other, verbose=False):

    for rule in other.rules:
        if (rule not in self.rules):
            if verbose:
                print 'Rule    in    other    not    found    in    self.    [{}]'.format(rule)
            return False
    for rule in self.rules:
        if (rule not in other.rules):
            if verbose:
                print 'Rule    in    self    not    found    in    other.    [{}]'.format(rule)
            return False
    return True
