def test_elim_inversion_of_is_or_in(self):
    for (line, cmp_op, invert) in (('not a is b', 'IS_OP', 1), ('not a is not b', 'IS_OP', 0), ('not a in b', 'CONTAINS_OP', 1), ('not a not in b', 'CONTAINS_OP', 0)):
        code = compile(line, '', 'single')
        self.assertInBytecode(code, cmp_op, invert)
        self.check_lnotab(code)
def test_elim_inversion_of_is_or_in(self):
    for (line, cmp_op, invert) in (('not a is b', 'IS_OP', 1), ('not a is not b', 'IS_OP', 0), ('not a in b', 'CONTAINS_OP', 1), ('not a not in b', 'CONTAINS_OP', 0)):
        code = compile(line, , 'single')
        self.assertInBytecode(code, cmp_op, invert)
        self.check_lnotab(code)