def test_transform_is_operation(): _assert_transform( cc.is_(cc.ref("x"), cc.ref("y")), js.binary_operation("===", js.ref("x"), js.ref("y")) )
def test_transform_is_operator(self): _assert_transform( nodes.is_(nodes.ref("x"), nodes.ref("y")), cc.is_(cc.ref("x"), cc.ref("y")), )