Exemplo n.º 1
0
def test_serialize_binary_operation():
    assert_equal("x + y", _dumps(js.binary_operation("+", js.ref("x"), js.ref("y"))))
Exemplo n.º 2
0
def test_transform_is_operation():
    _assert_transform(
        cc.is_(cc.ref("x"), cc.ref("y")),
        js.binary_operation("===", js.ref("x"), js.ref("y"))
    )