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

def test_merging_interval_rules_with_smaller_lt_component(self):

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