Ejemplo n.º 1
0
def test_encode_object_2b():
    payload = [
        protocol.Object('com.caucho.hessian.test.TestObject', _value=0),
        protocol.Object('com.caucho.hessian.test.TestObject', _value=0)
    ]

    assert test.argObject_2b(payload) is True
Ejemplo n.º 2
0
def test_encode_object_16():
    payload = [
        protocol.Object('com.caucho.hessian.test.A0'),
        protocol.Object('com.caucho.hessian.test.A1'),
        protocol.Object('com.caucho.hessian.test.A2'),
        protocol.Object('com.caucho.hessian.test.A3'),
        protocol.Object('com.caucho.hessian.test.A4'),
        protocol.Object('com.caucho.hessian.test.A5'),
        protocol.Object('com.caucho.hessian.test.A6'),
        protocol.Object('com.caucho.hessian.test.A7'),
        protocol.Object('com.caucho.hessian.test.A8'),
        protocol.Object('com.caucho.hessian.test.A9'),
        protocol.Object('com.caucho.hessian.test.A10'),
        protocol.Object('com.caucho.hessian.test.A11'),
        protocol.Object('com.caucho.hessian.test.A12'),
        protocol.Object('com.caucho.hessian.test.A13'),
        protocol.Object('com.caucho.hessian.test.A14'),
        protocol.Object('com.caucho.hessian.test.A15'),
        protocol.Object('com.caucho.hessian.test.A16')
    ]

    assert test.argObject_16(payload) is True
Ejemplo n.º 3
0
def test_encode_object_2a():
    payload = protocol.Object('com.caucho.hessian.test.TestObject', _value=0)

    assert test.argObject_2a([payload, payload]) is True
Ejemplo n.º 4
0
def test_encode_object_0():
    payload = protocol.Object('com.caucho.hessian.test.A0')
    assert test.argObject_0(payload) is True