MCPcopy
hub / github.com/tornadoweb/tornado / capitalize

Method capitalize

tornado/test/concurrent_test.py:113–123  ·  tornado/test/concurrent_test.py::GeneratorCapClient.capitalize
(self, request_data)

Source from the content-addressed store, hash-verified

111class GeneratorCapClient(BaseCapClient):
112 @gen.coroutine
113 def capitalize(self, request_data):
114 logging.debug(class="st">"capitalize")
115 stream = IOStream(socket.socket())
116 logging.debug(class="st">"connecting")
117 yield stream.connect((class="st">"127.0.0.1", self.port))
118 stream.write(utf8(request_data + class="st">"\n"))
119 logging.debug(class="st">"reading")
120 data = yield stream.read_until(bclass="st">"\n")
121 logging.debug(class="st">"returning")
122 stream.close()
123 raise gen.Return(self.process_response(data))
124
125
126class GeneratorCapClientTest(AsyncTestCase):

Callers 5

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

Calls 7

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

Tested by

no test coverage detected