(self)
| 95 | |
| 96 | class HttpTest(unittest.TestCase): |
| 97 | def test_read_header(self): |
| 98 | status, header, _ = read_headers(HeaderSockMock("data/header01.txt")) |
| 99 | self.assertEqual(status, 101) |
| 100 | self.assertEqual(header["connection"], "Upgrade") |
| 101 | # header02.txt is intentionally malformed |
| 102 | self.assertRaises( |
| 103 | WebSocketException, read_headers, HeaderSockMock("data/header02.txt") |
| 104 | ) |
| 105 | |
| 106 | def test_tunnel(self): |
| 107 | self.assertRaises( |
nothing calls this directly
no test coverage detected