@@ -155,28 +155,6 @@ def test_domain_matching() -> None:
155
155
assert not test_func ("test.com" , "127.0.0.1" )
156
156
157
157
158
- def test_path_matching () -> None :
159
- test_func = CookieJar ._is_path_match
160
-
161
- assert test_func ("/" , "" )
162
- assert test_func ("" , "/" )
163
- assert test_func ("/file" , "" )
164
- assert test_func ("/folder/file" , "" )
165
- assert test_func ("/" , "/" )
166
- assert test_func ("/file" , "/" )
167
- assert test_func ("/file" , "/file" )
168
- assert test_func ("/folder/" , "/folder/" )
169
- assert test_func ("/folder/" , "/" )
170
- assert test_func ("/folder/file" , "/" )
171
-
172
- assert not test_func ("/" , "/file" )
173
- assert not test_func ("/" , "/folder/" )
174
- assert not test_func ("/file" , "/folder/file" )
175
- assert not test_func ("/folder/" , "/folder/file" )
176
- assert not test_func ("/different-file" , "/file" )
177
- assert not test_func ("/different-folder/" , "/folder/" )
178
-
179
-
180
158
async def test_constructor (cookies_to_send : Any , cookies_to_receive : Any ) -> None :
181
159
jar = CookieJar ()
182
160
jar .update_cookies (cookies_to_send )
@@ -253,6 +231,96 @@ async def test_filter_cookies_str_deprecated(loop: Any) -> None:
253
231
jar .filter_cookies ("http://éé.com" )
254
232
255
233
234
+ @pytest .mark .parametrize (
235
+ ("url" , "expected_cookies" ),
236
+ (
237
+ (
238
+ "http://pathtest.com/one/two/" ,
239
+ (
240
+ "no-path-cookie" ,
241
+ "path1-cookie" ,
242
+ "path2-cookie" ,
243
+ "shared-cookie" ,
244
+ "path3-cookie" ,
245
+ "path4-cookie" ,
246
+ ),
247
+ ),
248
+ (
249
+ "http://pathtest.com/one/two" ,
250
+ (
251
+ "no-path-cookie" ,
252
+ "path1-cookie" ,
253
+ "path2-cookie" ,
254
+ "shared-cookie" ,
255
+ "path3-cookie" ,
256
+ ),
257
+ ),
258
+ (
259
+ "http://pathtest.com/one/two/three/" ,
260
+ (
261
+ "no-path-cookie" ,
262
+ "path1-cookie" ,
263
+ "path2-cookie" ,
264
+ "shared-cookie" ,
265
+ "path3-cookie" ,
266
+ "path4-cookie" ,
267
+ ),
268
+ ),
269
+ (
270
+ "http://test1.example.com/" ,
271
+ (
272
+ "shared-cookie" ,
273
+ "domain-cookie" ,
274
+ "subdomain1-cookie" ,
275
+ "dotted-domain-cookie" ,
276
+ ),
277
+ ),
278
+ (
279
+ "http://pathtest.com/" ,
280
+ (
281
+ "shared-cookie" ,
282
+ "no-path-cookie" ,
283
+ "path1-cookie" ,
284
+ ),
285
+ ),
286
+ ),
287
+ )
288
+ async def test_filter_cookies_with_domain_path_lookup_multilevelpath (
289
+ loop : Any ,
290
+ url : Any ,
291
+ expected_cookies : Any ,
292
+ ) -> None :
293
+ jar = CookieJar ()
294
+ cookies = SimpleCookie (
295
+ "shared-cookie=first; "
296
+ "domain-cookie=second; Domain=example.com; "
297
+ "subdomain1-cookie=third; Domain=test1.example.com; "
298
+ "subdomain2-cookie=fourth; Domain=test2.example.com; "
299
+ "dotted-domain-cookie=fifth; Domain=.example.com; "
300
+ "different-domain-cookie=sixth; Domain=different.org; "
301
+ "secure-cookie=seventh; Domain=secure.com; Secure; "
302
+ "no-path-cookie=eighth; Domain=pathtest.com; "
303
+ "path1-cookie=ninth; Domain=pathtest.com; Path=/; "
304
+ "path2-cookie=tenth; Domain=pathtest.com; Path=/one; "
305
+ "path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; "
306
+ "path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; "
307
+ "expires-cookie=thirteenth; Domain=expirestest.com; Path=/;"
308
+ " Expires=Tue, 1 Jan 1980 12:00:00 GMT; "
309
+ "max-age-cookie=fourteenth; Domain=maxagetest.com; Path=/;"
310
+ " Max-Age=60; "
311
+ "invalid-max-age-cookie=fifteenth; Domain=invalid-values.com; "
312
+ " Max-Age=string; "
313
+ "invalid-expires-cookie=sixteenth; Domain=invalid-values.com; "
314
+ " Expires=string;"
315
+ )
316
+ jar .update_cookies (cookies )
317
+ cookies = jar .filter_cookies (URL (url ))
318
+
319
+ assert len (cookies ) == len (expected_cookies )
320
+ for c in cookies :
321
+ assert c in expected_cookies
322
+
323
+
256
324
async def test_domain_filter_ip_cookie_send (loop : Any ) -> None :
257
325
jar = CookieJar ()
258
326
cookies = SimpleCookie (
@@ -503,11 +571,11 @@ def test_domain_filter_diff_host(self) -> None:
503
571
504
572
def test_domain_filter_host_only (self ) -> None :
505
573
self .jar .update_cookies (self .cookies_to_receive , URL ("http://example.com/" ))
574
+ sub_cookie = SimpleCookie ("subdomain=spam; Path=/;" )
575
+ self .jar .update_cookies (sub_cookie , URL ("http://foo.example.com/" ))
506
576
507
- cookies_sent = self .jar .filter_cookies (URL ("http://example.com/" ))
508
- self .assertIn ("unconstrained-cookie" , set (cookies_sent .keys ()))
509
-
510
- cookies_sent = self .jar .filter_cookies (URL ("http://different.org/" ))
577
+ cookies_sent = self .jar .filter_cookies (URL ("http://foo.example.com/" ))
578
+ self .assertIn ("subdomain" , set (cookies_sent .keys ()))
511
579
self .assertNotIn ("unconstrained-cookie" , set (cookies_sent .keys ()))
512
580
513
581
def test_secure_filter (self ) -> None :
@@ -837,7 +905,7 @@ def test_pickle_format(cookies_to_send) -> None:
837
905
with file_path.open("wb") as f:
838
906
pickle.dump(cookies, f, pickle.HIGHEST_PROTOCOL)
839
907
"""
840
- pickled = b"\x80 \x05 \x95 \xc5 \x07 \x00 \x00 \x00 \x00 \x00 \x00 \x8c \x0b collections\x94 \x8c \x0b defaultdict\x94 \x93 \x94 \x8c \x0c http.cookies\x94 \x8c \x0c SimpleCookie\x94 \x93 \x94 \x85 \x94 R\x94 (\x8c \x00 \x94 \x8c \x01 /\x94 \x86 \x94 h\x05 )\x81 \x94 \x8c \r shared-cookie\x94 h\x03 \x8c \x06 Morsel\x94 \x93 \x94 )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\t \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\x08 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (\x8c \x03 key\x94 h\x0c \x8c \x05 value\x94 \x8c \x05 first\x94 \x8c \x0b coded_value\x94 h\x1c ubs\x8c \x0b example.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 (\x8c \r domain-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 h\x1e h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h!h\x1b \x8c \x06 second\x94 h\x1d h$ub\x8c \x14 dotted-domain-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 \x8c \x0b example.com\x94 h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h%h\x1b \x8c \x05 fifth\x94 h\x1d h)ubu\x8c \x11 test1.example.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \x11 subdomain1-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 h*h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h-h\x1b \x8c \x05 third\x94 h\x1d h0ubs\x8c \x11 test2.example.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \x11 subdomain2-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 h1h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h4h\x1b \x8c \x06 fourth\x94 h\x1d h7ubs\x8c \r different.org\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \x17 different-domain-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 h8h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h;h\x1b \x8c \x05 sixth\x94 h\x1d h>ubs\x8c \n secure.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \r secure-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 h?h\x14 h\x08 h\x15 \x88 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hBh\x1b \x8c \x07 seventh\x94 h\x1d hEubs\x8c \x0c pathtest.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 (\x8c \x0e no-path-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 hFh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hIh\x1b \x8c \x06 eighth\x94 h\x1d hLub\x8c \x0c path1-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 \x8c \x0c pathtest.com\x94 h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hMh\x1b \x8c \x05 ninth\x94 h\x1d hQubu\x8c \x0c pathtest.com\x94 \x8c \x04 /one\x94 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0c path2-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 hSh\x12 h\x08 h\x13 hRh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hVh\x1b \x8c \x05 tenth\x94 h\x1d hYubs\x8c \x0c pathtest.com\x94 \x8c \x08 /one/two\x94 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0c path3-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h[h\x12 h\x08 h\x13 hZh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h^h\x1b \x8c \x08 eleventh\x94 h\x1d haubs\x8c \x0c pathtest.com\x94 \x8c \t /one/two/\x94 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0c path4-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 hch\x12 h\x08 h\x13 hbh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hfh\x1b \x8c \x07 twelfth\x94 h\x1d hiubs\x8c \x0f expirestest.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \x0e expires-cookie\x94 h\x0e )\x81 \x94 (h\x10 \x8c \x1c Tue, 1 Jan 2999 12:00:00 GMT\x94 h\x11 h\t h\x12 h\x08 h\x13 hjh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a hmh\x1b \x8c \n thirteenth\x94 h\x1d hqubs\x8c \x0e maxagetest.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 \x8c \x0e max-age-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 hrh\x14 \x8c \x02 60\x94 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a huh\x1b \x8c \n fourteenth\x94 h\x1d hyubs\x8c \x12 invalid-values.com\x94 h\t \x86 \x94 h\x05 )\x81 \x94 (\x8c \x16 invalid-max-age-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 hzh\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h}h\x1b \x8c \t fifteenth\x94 h\x1d h\x80 ub\x8c \x16 invalid-expires-cookie\x94 h\x0e )\x81 \x94 (h\x10 h\x08 h\x11 h\t h\x12 h\x08 h\x13 \x8c \x12 invalid-values.com\x94 h\x14 h\x08 h\x15 h\x08 h\x16 h\x08 h\x17 h\x08 h\x18 h\x08 u}\x94 (h\x1a h\x81 h\x1b \x8c \t sixteenth\x94 h\x1d h\x85 ubuu."
908
+ pickled = b"\x80 \x04 \x95 \xc8 \x0b \x00 \x00 \x00 \x00 \x00 \x00 \x8c \x0b collections\x94 \x8c \x0b defaultdict\x94 \x93 \x94 \x8c \x0c http.cookies\x94 \x8c \x0c SimpleCookie\x94 \x93 \x94 \x85 \x94 R\x94 (\x8c \x00 \x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \r shared-cookie\x94 h\x03 \x8c \x06 Morsel\x94 \x93 \x94 )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 \x8c \x01 /\x94 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\x08 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (\x8c \x03 key\x94 h\x0b \x8c \x05 value\x94 \x8c \x05 first\x94 \x8c \x0b coded_value\x94 h\x1c ubs\x8c \x0b example.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 (\x8c \r domain-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\x1e \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h!h\x1b \x8c \x06 second\x94 h\x1d h-ub\x8c \x14 dotted-domain-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 \x8c \x0b example.com\x94 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h.h\x1b \x8c \x05 fifth\x94 h\x1d h;ubu\x8c \x11 test1.example.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \x11 subdomain1-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h<\x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h?h\x1b \x8c \x05 third\x94 h\x1d hKubs\x8c \x11 test2.example.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \x11 subdomain2-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 hL\x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a hOh\x1b \x8c \x06 fourth\x94 h\x1d h[ubs\x8c \r different.org\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \x17 different-domain-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\\ \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h_h\x1b \x8c \x05 sixth\x94 h\x1d hkubs\x8c \n secure.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \r secure-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 hl\x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 \x88 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a hoh\x1b \x8c \x07 seventh\x94 h\x1d h{ubs\x8c \x0c pathtest.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 (\x8c \x0e no-path-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h|\x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\x7f h\x1b \x8c \x06 eighth\x94 h\x1d h\x8b ub\x8c \x0c path1-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 \x8c \x0c pathtest.com\x94 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\x8c h\x1b \x8c \x05 ninth\x94 h\x1d h\x99 ubu\x8c \x0c pathtest.com\x94 \x8c \x04 /one\x94 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0c path2-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x9b \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\x9a \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\x9e h\x1b \x8c \x05 tenth\x94 h\x1d h\xaa ubs\x8c \x0c pathtest.com\x94 \x8c \x08 /one/two\x94 \x86 \x94 h\x05 )\x81 \x94 (\x8c \x0c path3-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\xac \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\xab \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xaf h\x1b \x8c \x08 eleventh\x94 h\x1d h\xbb ub\x8c \x0c path4-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 \x8c \t /one/two/\x94 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 \x8c \x0c pathtest.com\x94 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xbc h\x1b \x8c \x07 twelfth\x94 h\x1d h\xca ubu\x8c \x0f expirestest.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0e expires-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 \x8c \x1c Tue, 1 Jan 2999 12:00:00 GMT\x94 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\xcb \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xce h\x1b \x8c \n thirteenth\x94 h\x1d h\xdb ubs\x8c \x0e maxagetest.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 \x8c \x0e max-age-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\xdc \x8c \x07 max-age\x94 \x8c \x02 60\x94 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xdf h\x1b \x8c \n fourteenth\x94 h\x1d h\xec ubs\x8c \x12 invalid-values.com\x94 h\x08 \x86 \x94 h\x05 )\x81 \x94 (\x8c \x16 invalid-max-age-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 h\xed \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xf0 h\x1b \x8c \t fifteenth\x94 h\x1d h\xfc ub\x8c \x16 invalid-expires-cookie\x94 h\r )\x81 \x94 (\x8c \x07 expires\x94 h\x08 \x8c \x04 path\x94 h\x11 \x8c \x07 comment\x94 h\x08 \x8c \x06 domain\x94 \x8c \x12 invalid-values.com\x94 \x8c \x07 max-age\x94 h\x08 \x8c \x06 secure\x94 h\x08 \x8c \x08 httponly\x94 h\x08 \x8c \x07 version\x94 h\x08 \x8c \x08 samesite\x94 h\x08 u}\x94 (h\x1a h\xfd h\x1b \x8c \t sixteenth\x94 h\x1d j\n \x01 \x00 \x00 ubuu."
841
909
cookies = pickle .loads (pickled )
842
910
843
911
cj = CookieJar ()
0 commit comments