'Determines if two rules are equal ignoring id field.'

def _rules_equal(self, rule1, rule2):

    rule1_copy = rule1.copy()
    rule2_copy = rule2.copy()
    rule1_copy.pop('id', None)
    rule2_copy.pop('id', None)
    return (rule1_copy == rule2_copy)
