'Merging `0 < x < 4` and `2 < x < 6` should produce `2 < x < 4`.'

def test_merging_interval_rules_generally(self):

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