(self)
| 284 | """) |
| 285 | |
| 286 | def test_invalid_cookies(self): |
| 287 | # Accepting these could be a security issue |
| 288 | C = cookies.SimpleCookie() |
| 289 | for s in (']foo=x', '[foo=x', 'blah]foo=x', 'blah[foo=x', |
| 290 | 'Set-Cookie: foo=bar', 'Set-Cookie: foo', |
| 291 | 'foo=bar; baz', 'baz; foo=bar', |
| 292 | 'secure;foo=bar', 'Version=1;foo=bar'): |
| 293 | C.load(s) |
| 294 | self.assertEqual(dict(C), {}) |
| 295 | self.assertEqual(C.output(), '') |
| 296 | |
| 297 | def test_pickle(self): |
| 298 | rawdata = 'Customer="WILE_E_COYOTE"; Path=/acme; Version=1' |
nothing calls this directly
no test coverage detected