MCPcopy Create free account
hub / github.com/EasyIME/PIME / capitalize

Method capitalize

python/python3/tornado/test/concurrent_test.py:88–98  ·  view source on GitHub ↗
(self, request_data)

Source from the content-addressed store, hash-verified

86class GeneratorCapClient(BaseCapClient):
87 @gen.coroutine
88 def capitalize(self, request_data):
89 logging.debug("capitalize")
90 stream = IOStream(socket.socket())
91 logging.debug("connecting")
92 yield stream.connect(("127.0.0.1", self.port))
93 stream.write(utf8(request_data + "\n"))
94 logging.debug("reading")
95 data = yield stream.read_until(b"\n")
96 logging.debug("returning")
97 stream.close()
98 raise gen.Return(self.process_response(data))
99
100
101class ClientTestMixin(object):

Callers 5

_normalize_headerFunction · 0.80
getMethod · 0.80
test_futureMethod · 0.80
test_future_errorMethod · 0.80
fMethod · 0.80

Calls 8

connectMethod · 0.95
IOStreamClass · 0.90
utf8Function · 0.90
debugMethod · 0.80
read_untilMethod · 0.80
process_responseMethod · 0.80
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected