(self)
| 122 | self.check_hello(out) |
| 123 | |
| 124 | def test_environ(self): |
| 125 | request = ( |
| 126 | b"GET /p%61th/?query=test HTTP/1.0\n" |
| 127 | b"X-Test-Header: Python test \n" |
| 128 | b"X-Test-Header: Python test 2\n" |
| 129 | b"Content-Length: 0\n\n" |
| 130 | ) |
| 131 | out, err = run_amock(header_app, request) |
| 132 | self.assertEqual( |
| 133 | out.splitlines()[-1], |
| 134 | b"Python test,Python test 2;query=test;/path/" |
| 135 | ) |
| 136 | |
| 137 | def test_request_length(self): |
| 138 | out, err = run_amock(data=b"GET " + (b"x" * 65537) + b" HTTP/1.0\n\n") |
nothing calls this directly
no test coverage detected