Esempio n. 1
0
def client_context_with_url(timeout=3000):
    return client_context(addressbook.AddressBookService,
                          url="http://127.0.0.1:6080",
                          timeout=timeout)
Esempio n. 2
0
def client_context_with_custom_header_factory(timeout=3000):
    return client_context(addressbook.AddressBookService,
                          url="http://127.0.0.1:6080",
                          timeout=timeout,
                          http_header_factory=CustomHeaderFactory())
Esempio n. 3
0
def client(timeout=3000):
    return client_context(addressbook.AddressBookService,
                          host="127.0.0.1",
                          port=6080,
                          timeout=timeout)
Esempio n. 4
0
def client_context_with_malformed_path(timeout=3000):
    return client_context(addressbook.AddressBookService,
                          host="127.0.0.1",
                          port=6080,
                          path="foo",
                          timeout=timeout)