connect() perfoms HTTP Basic Authentication with user info from the URI.
(self)
| 144 | self.assertEqual(request.headers["Host"], host) |
| 145 | |
| 146 | def test_user_info(self): |
| 147 | """connect() perfoms HTTP Basic Authentication with user info from the URI.""" |
| 148 | client = ClientProtocol(parse_uri("wss://hello:iloveyou@example.com/")) |
| 149 | request = client.connect() |
| 150 | |
| 151 | self.assertEqual(request.headers["Authorization"], "Basic aGVsbG86aWxvdmV5b3U=") |
| 152 | |
| 153 | def test_origin(self): |
| 154 | """connect(origin=...) generates an Origin header.""" |
nothing calls this directly
no test coverage detected