(self)
| 1286 | self.assertIn('$Domain="bar.com"', h, "domain not returned") |
| 1287 | |
| 1288 | def test_path_mirror(self): |
| 1289 | pol = DefaultCookiePolicy(rfc2965=True) |
| 1290 | |
| 1291 | c = CookieJar(pol) |
| 1292 | url = "http://foo.bar.com/" |
| 1293 | interact_2965(c, url, "spam=eggs; Version=1") |
| 1294 | h = interact_2965(c, url) |
| 1295 | self.assertNotIn("Path", h, "absent path returned with path present") |
| 1296 | |
| 1297 | c = CookieJar(pol) |
| 1298 | url = "http://foo.bar.com/" |
| 1299 | interact_2965(c, url, 'spam=eggs; Version=1; Path=/') |
| 1300 | h = interact_2965(c, url) |
| 1301 | self.assertIn('$Path="/"', h, "path not returned") |
| 1302 | |
| 1303 | def test_port_mirror(self): |
| 1304 | pol = DefaultCookiePolicy(rfc2965=True) |
nothing calls this directly
no test coverage detected