(self, httpbin)
| 220 | assert 'Zzz' in r |
| 221 | |
| 222 | def test_session_unicode(self, httpbin): |
| 223 | self.start_session(httpbin) |
| 224 | |
| 225 | r1 = http('--session=test', f'--auth=test:{UNICODE}', |
| 226 | 'GET', httpbin + '/get', f'Test:{UNICODE}', |
| 227 | env=self.env()) |
| 228 | assert HTTP_OK in r1 |
| 229 | |
| 230 | r2 = http('--session=test', '--verbose', 'GET', |
| 231 | httpbin + '/get', env=self.env()) |
| 232 | assert HTTP_OK in r2 |
| 233 | |
| 234 | # FIXME: Authorization *sometimes* is not present |
| 235 | assert (r2.json['headers']['Authorization'] |
| 236 | == HTTPBasicAuth.make_header('test', UNICODE)) |
| 237 | # httpbin doesn't interpret UTF-8 headers |
| 238 | assert UNICODE in r2 |
| 239 | |
| 240 | def test_session_default_header_value_overwritten(self, httpbin): |
| 241 | self.start_session(httpbin) |
nothing calls this directly
no test coverage detected