MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_invaliduri

Method test_invaliduri

Lib/test/test_httpservers.py:1143–1146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1141 self.assertEqual(res.read(), b'Hello World' + self.linesep)
1142
1143 def test_invaliduri(self):
1144 res = self.request('/cgi-bin/invalid')
1145 res.read()
1146 self.assertEqual(res.status, HTTPStatus.NOT_FOUND)
1147
1148 def test_authorization(self):
1149 headers = {b'Authorization' : b'Basic ' +

Callers

nothing calls this directly

Calls 3

requestMethod · 0.45
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected