Example #1
0
 def test_parse_binary_1(self):
     expected = protocol.Binary(b"0")
     reply = self.client.replyBinary_1()
     self.assertEqual(expected, reply)
Example #2
0
 def test_parse_binary_1023(self):
     expected = protocol.Binary(six.b(self.get_reply_str_1024()[:1023]))
     reply = self.client.replyBinary_1023()
     self.assertEqual(expected, reply)
def test_client_http_auth(hessian_auth_client):
    expected = protocol.Binary(b"")
    reply = hessian_auth_client.replyBinary_0()
    assert expected == reply
def test_ssl_opts(hessian_client_ssl):
    expected = protocol.Binary(b"")
    reply = hessian_client_ssl.replyBinary_0()
    assert expected == reply
def test_parse_binary_16(client):
    assert client.replyBinary_16() == protocol.Binary(b"0123456789012345")
def test_parse_binary_65536(client, str_65536):
    expected = protocol.Binary(six.b(str_65536))
    reply = client.replyBinary_65536()
    assert reply == expected
def test_parse_binary_1(client):
    expected = protocol.Binary(b"0")
    reply = client.replyBinary_1()
    assert reply == expected
def test_encode_binary_1024(client, str_1024):
    arg = protocol.Binary(six.b(str_1024[:1024]))
    response = client.argBinary_1024(arg)
    assert response is True, "Debug response: %s" % response
Example #9
0
 def test_encode_binary_16(self):
     response = self.client.argBinary_16(
         protocol.Binary(b"0123456789012345"))
     self.assertEqual(response, True, "Debug response: %s" % response)
Example #10
0
 def test_encode_binary_65536(self):
     arg = protocol.Binary(six.b(self.get_arg_str_65536()))
     response = self.client.argBinary_65536(arg)
     self.assertEqual(response, True, "Debug response: %s" % response)
Example #11
0
 def test_encode_binary_1(self):
     arg = protocol.Binary(b"0")
     response = self.client.argBinary_1(arg)
     self.assertEqual(response, True, "Debug response: %s" % response)
def test_encode_binary_65536(client, str_65536):
    arg = protocol.Binary(six.b(str_65536))
    response = client.argBinary_65536(arg)
    assert response is True, "Debug response: %s" % response
def test_encode_binary_16(client):
    response = client.argBinary_16(protocol.Binary(b"0123456789012345"))
    assert response is True, "Debug response: %s" % response
Example #14
0
 def test_parse_binary_16(self):
     self.assertEqual(self.client.replyBinary_16(),
                      protocol.Binary(b"0123456789012345"))
def test_parse_binary_1024(client, str_1024):
    expected = protocol.Binary(six.b(str_1024[:1024]))
    reply = client.replyBinary_1024()
    assert reply == expected
Example #16
0
 def test_parse_binary_65536(self):
     expected = protocol.Binary(six.b(self.get_reply_str_65536()))
     reply = self.client.replyBinary_65536()
     self.assertEqual(expected, reply)
def test_encode_binary_1(client):
    arg = protocol.Binary(b"0")
    response = client.argBinary_1(arg)
    assert response is True, "Debug response: %s" % response