'Merging `1 < x < 2` and `x < 3` should produce `1 < x < 2`.'

def test_merging_interval_rule_with_larger_continuous_rule(self):

    rule1 = IntervalRule('Rule', ContinuousRule('Rule', True, 1), ContinuousRule('Rule', False, 2))
    rule2 = ContinuousRule('Rule', False, 3)
    new_rule = rule1.merge_with(rule2)
    self.assertIsInstance(new_rule, IntervalRule)
    self.assertEqual(new_rule.left_rule.value, 1)
