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

Method test_newlines

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

Source from the content-addressed store, hash-verified

251 self.assertEqual("\u00fa", data["filebody"])
252
253 def test_newlines(self):
254 # We support both CRLF and bare LF as line separators.
255 for newline in (b"\r\n", b"\n"):
256 response = self.raw_fetch([b"GET /hello HTTP/1.0"], b"", newline=newline)
257 self.assertEqual(response, b"Hello world")
258
259 @gen_test
260 def test_100_continue(self):

Callers

nothing calls this directly

Calls 1

raw_fetchMethod · 0.95

Tested by

no test coverage detected