(self, httpbin)
| 190 | assert HTTP_OK in r |
| 191 | |
| 192 | def test_session_by_path(self, httpbin): |
| 193 | self.start_session(httpbin) |
| 194 | session_path = self.config_dir / 'session-by-path.json' |
| 195 | r1 = http('--session', str(session_path), 'GET', httpbin + '/get', |
| 196 | 'Foo:Bar', env=self.env()) |
| 197 | assert HTTP_OK in r1 |
| 198 | |
| 199 | r2 = http('--session', str(session_path), 'GET', httpbin + '/get', |
| 200 | env=self.env()) |
| 201 | assert HTTP_OK in r2 |
| 202 | assert r2.json['headers']['Foo'] == 'Bar' |
| 203 | |
| 204 | def test_session_with_cookie_followed_by_another_header(self, httpbin): |
| 205 | """ |
nothing calls this directly
no test coverage detected