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

Method test_httperror_str

tornado/test/web_test.py:1880–1881  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1878 self.assertIn(b"682: Foo", response.body)
1879
1880 def test_httperror_str(self):
1881 self.assertEqual(str(HTTPError(682, reason="Foo")), "HTTP 682: Foo")
1882
1883 def test_httperror_str_from_httputil(self):
1884 self.assertEqual(str(HTTPError(682)), "HTTP 682: Unknown")

Callers

nothing calls this directly

Calls 1

HTTPErrorClass · 0.90

Tested by

no test coverage detected