'Interval rule merging should be commutative.'

def test_merge_commutativity_on_interval_rules(self):

    rule1 = IntervalRule('Rule', ContinuousRule('Rule', True, 0), ContinuousRule('Rule', False, 4))
    rule2 = IntervalRule('Rule', ContinuousRule('Rule', True, 2), ContinuousRule('Rule', False, 6))
    new_rule1 = rule1.merge_with(rule2)
    new_rule2 = rule2.merge_with(rule1)
    self.assertEqual(new_rule1.left_rule.value, new_rule2.left_rule.value)
    self.assertEqual(new_rule1.right_rule.value, new_rule2.right_rule.value)
