void () { doTest("int", """ def test_1(self, c): x = 1 if c else None if x is not None: expr = x """); doTest("int", """ def test_1(self, c): x = 1 if c else None if None is not x: expr = x """); doTest("int", """ def test_1(self, c): x = 1 if c else None if not x is None: expr = x """); doTest("int", """ def test_1(self, c): x = 1 if c else None if not None is x: expr = x """); }