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

Method test_pipelined_cancel

tornado/test/httpserver_test.py:1056–1063  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1054
1055 @gen_test
1056 def test_pipelined_cancel(self):
1057 yield self.connect()
1058 self.stream.write(
1059 b"GET / HTTP/1.1\r\nHost:127.0.0.1\r\n\r\nGET / HTTP/1.1\r\nHost:127.0.0.1\r\n\r\n"
1060 )
1061 # only read once
1062 yield self.read_response()
1063 self.close()
1064
1065 @gen_test
1066 def test_cancel_during_download(self):

Callers

nothing calls this directly

Calls 4

connectMethod · 0.95
read_responseMethod · 0.95
closeMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected