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

Method test_body

python/python3/tornado/test/httpclient_test.py:879–881  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

877 self.assertEqual(request.headers, {})
878
879 def test_body(self):
880 request = HTTPRequest("http://example.com", body="foo")
881 self.assertEqual(request.body, utf8("foo"))
882
883 def test_body_setter(self):
884 request = HTTPRequest("http://example.com")

Callers

nothing calls this directly

Calls 2

HTTPRequestClass · 0.90
utf8Function · 0.90

Tested by

no test coverage detected