File: test_request.pyc

package info (click to toggle)
python-webob 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,340 kB
  • ctags: 2,468
  • sloc: python: 13,433; makefile: 12
file content (1443 lines) | stat: -rw-r--r-- 149,588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443

tSc	@sddkZddkZddkZddkZddklZlZddklZl	Z	l
Z
lZlZdei
fdYZdei
fdYZdei
fd	YZd
ei
fdYZdei
fd
YZdei
fdYZdei
fdYZdei
fdYZdei
fdYZdei
fdYZdei
fdYZdZdZdZdZdZdZeeZeed ZeeZd!efd"YZ d#e fd$YZ!dS(%iN(tBytesIOtStringIO(tbytes_tnative_t	text_typettext_tPY3tTestRequestCommoncBs_eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTdSZUdTZVdUZWdVZXdWZYdXZZdYZ[dZZ\d[Z]d\Z^d]Z_d^Z`RS(_cCsddkl}|S(Ni(tRequest(t
webob.requestR(tselfR((s1/home/chrism/projects/webob/tests/test_request.pyt_getTargetClassscOs|i}|||S(N(R(R
targtkwtcls((s1/home/chrism/projects/webob/tests/test_request.pyt_makeOnescOs|i}|i||S(N(Rtblank(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyt	_blankOnescCs#|it|ihdtdS(Ntenviron_getter(tassertRaisest	TypeErrorRtobject(R
((s1/home/chrism/projects/webob/tests/test_request.pyt#test_ctor_environ_getter_raises_WTF#s	cCs|it|iddS(N(RRRtNone(R
((s1/home/chrism/projects/webob/tests/test_request.pyttest_ctor_wo_environ_raises_WTF'scCs,h}|i|}|i|i|dS(N(RtassertEqualtenviron(R
Rtreq((s1/home/chrism/projects/webob/tests/test_request.pyttest_ctor_w_environ*scCs&h}|it|i|dddS(Ntcharsetslatin-1(RtDeprecationWarningR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_ctor_w_non_utf8_charset/scCs3hdd6}|i|}|i|iddS(Ns
something:swsgi.url_scheme(RRtscheme(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_scheme4s
cCs\d}t|}h|d6t|d6dd6}|i|}|i|i|j	dS(Ntinputs
wsgi.inputtCONTENT_LENGTHtPOSTtREQUEST_METHOD(RtlenRt
assertTruet	body_file(R
tbodytINPUTRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_getter:s


cCscd}t|}h|d6t|d6dd6td6}|i|}|i|i|jdS(NR"s
wsgi.inputR#R$R%swebob.is_body_seekable(RR&tTrueRR'R((R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_getter_seekableDs


cCs_d}t|}h|d6t|d6dd6}|i|}|i|i|ijdS(NR"s
wsgi.inputR#R$R%(RR&RR'R((R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_getter_cacheOs


cCsd}t|}h|d6dd6}|i|}|i|jpt|i|j	pt|iidjptdS(NR"s
wsgi.inputtFOOR%t(RRt
body_file_rawtAssertionErrorR(tread(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyt test_body_file_getter_unreadableYscCs,|id}|itt|dddS(Nt/R(tfoo(RRRtsetattr(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_setter_w_bytesbs	cCs~td}td}h|d6tdd6dd6}|i|}||_|i|i|j|i|iddS(Ntbeforetafters
wsgi.inputR#R$R%(RR&RR(R'Rtcontent_lengthR(R
tBEFOREtAFTERRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_setter_non_bytesgs


	cCsxd}t|}h|d6t|d6dd6}|i|}|`|i|iid|i|iddS(NR"s
wsgi.inputR#R$R%R0i(RR&RR(RtgetvalueR;(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_deleterss


cCsVtd}h|d6tdd6dd6}|i|}|i|i|jdS(NR"s
wsgi.inputR#R$R%(RR&RR'R1(R
R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_raws


cCsd}t|}|iddh|d6td6t|dd6dd6}|i|}|i}|i||j	|i|id	dS(
NR"iis
wsgi.inputswebob.is_body_seekableR#R$R%tnput(	RtseektFalseR&Rtbody_file_seekableR'RR?(R
tdataR*RRtseekable((s1/home/chrism/projects/webob/tests/test_request.pyt*test_body_file_seekable_input_not_seekables

	cCswtd}|iddh|d6td6tddd6dd6}|i|}|i}|i||jdS(	NR"iis
wsgi.inputswebob.is_body_seekableR#R$R%(RRCR,R&RRER'(R
R*RRRG((s1/home/chrism/projects/webob/tests/test_request.pyt)test_body_file_seekable_input_is_seekables

	cCsAhhdd6d6}|i|}|i|ihdd6dS(NtbarR6s
paste.urlvars(RRturlvars(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_getter_w_paste_keyscCsGhdhdd6fd6}|i|}|i|ihdd6dS(NRJR6swsgiorg.routing_args((RRRK(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt!test_urlvars_getter_w_wsgiorg_keyscCsFh}|i|}|i|ih|i|ddhfdS(Nswsgiorg.routing_args((RRRK(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_getter_wo_keysscCshhdd6d6}|i|}hdd6|_|i|ihdd6|i|dhdd6|id|jdS(NRJR6s
paste.urlvarstbamtbazswsgiorg.routing_args(RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_setter_w_paste_keyscCshd	hdd6fd6hdd6d6}|i|}hdd6|_|i|ihdd6|i|dd
hdd6f|id|jdS(NRJR6swsgiorg.routing_argstspamtquxs
paste.urlvarsRORP(((RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt!test_urlvars_setter_w_wsgiorg_keys!cCswh}|i|}hdd6|_|i|ihdd6|i|ddhdd6f|id|jdS(NRORPswsgiorg.routing_argss
paste.urlvars((RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_setter_wo_keyss!cCsmhhdd6d6}|i|}|`|i|ih|id|j|i|ddhfdS(NRJR6s
paste.urlvarsswsgiorg.routing_args((RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt test_urlvars_deleter_w_paste_keyscCshd	hdd6fd6hdd6d6}|i|}|`|i|ih|i|dd
hf|id|jdS(NtatbRJR6swsgiorg.routing_argsRRRSs
paste.urlvars(RWRX(RWRX(RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt2test_urlvars_deleter_w_wsgiorg_key_non_empty_tuplescCshdhdd6fd6hdd6d6}|i|}|`|i|ih|i|ddhf|id|jdS(	NRJR6swsgiorg.routing_argsRRRSs
paste.urlvars(((RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt.test_urlvars_deleter_w_wsgiorg_key_empty_tuplescCs_h}|i|}|`|i|ih|i|ddhf|id|jdS(Nswsgiorg.routing_argss
paste.urlvars((RRKRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_deleter_wo_keysscCs:hhdd6d6}|i|}|i|iddS(NRJR6s
paste.urlvars((RRturlargs(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_getter_w_paste_keyscCs@hdhdd6fd6}|i|}|i|iddS(NRWRXRJR6swsgiorg.routing_args(RWRX(RWRX(RRR\(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt!test_urlargs_getter_w_wsgiorg_keyscCs?h}|i|}|i|id|id|jdS(Nswsgiorg.routing_args((RRR\R'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_getter_wo_keysscCswhhdd6d6}|i|}d|_|i|id|i|dd	hdd6f|id|jdS(
NRJR6s
paste.urlvarsRWRXswsgiorg.routing_args(RWRX(RWRX(RWRX(RR\RR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_setter_w_paste_keys	
cCsjhdhdd6fd6}|i|}d|_|i|id|i|dd	hdd6fdS(
NRJR6swsgiorg.routing_argsRWRX((RWRX(RWRX(RWRX(RR\R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt!test_urlargs_setter_w_wsgiorg_keys	
cCsbh}|i|}d|_|i|id|i|ddhf|id|jdS(NRWRXswsgiorg.routing_argss
paste.urlvars(RWRX(RWRX(RWRX(RR\RR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_setter_wo_keyss	

cCsghdhdd6fd6}|i|}|`|i|id|i|ddhdd6fdS(	NRWRXRJR6swsgiorg.routing_args(RWRX(((RR\R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt"test_urlargs_deleter_w_wsgiorg_key"s
cCsehdhfd6}|i|}|`|i|id|id|j|id|jdS(Nswsgiorg.routing_argss
paste.urlvars(((RR\RR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt(test_urlargs_deleter_w_wsgiorg_key_empty+scCsXh}|i|}|`|i|id|id|j|id|jdS(Ns
paste.urlvarsswsgiorg.routing_args((RR\RR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_deleter_wo_keys4scCs&|ih}|i|ihdS(N(RRtcookies(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_cookies_empty_environ<scCs=|ih}|i}d|d<|i|idddS(Nt1RW(RRfR(R
RRf((s1/home/chrism/projects/webob/tests/test_request.pyttest_cookies_is_mutable@s	
cCsNhdd6dhdd6fd6}|i|}|i|ihdd6dS(Nsa=btHTTP_COOKIERXRWswebob._parsed_cookies(RRRf(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt3test_cookies_w_webob_parsed_cookies_matching_sourceFs
cCsUhdd6dhdd6dd6fd6}|i|}|i|ihdd6dS(	Nsa=bRjsa=b;c=dRXRWtdtcswebob._parsed_cookies(RRRf(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt5test_cookies_w_webob_parsed_cookies_mismatched_sourceNs
cCshdd6}|i|}hdd6dd6|_|i|ihdd6dd6g}|didD]}||iql~}|it|dd	gdS(
Nsa=bRjRhRWt2RXt;sa=1sb=2(RRfRtsplittstriptsorted(R
RRt_[1]txtrcookies((s1/home/chrism/projects/webob/tests/test_request.pyttest_set_cookiesVs
!4cCsstd}h|d6td6tdd6dd6}|i|}|i|id|i|itddS(NR"s
wsgi.inputswebob.is_body_seekableR#R$R%(RR,R&RRR)R;(R
R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_getteras


cCstd}h|d6td6tdd6dd6}|i|}d|_|i|id|i|id|i|i	dS(	NR"s
wsgi.inputswebob.is_body_seekableR#R$R%R0i(
RR,R&RRR)RR;R'tis_body_seekable(R
R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_setter_Nonels


	cs2|ihfd}|it|dS(Ncst_dS(N(RR)((R(s1/home/chrism/projects/webob/tests/test_request.pyt_test{s(RRR(R
R{((Rs1/home/chrism/projects/webob/tests/test_request.pyt"test_body_setter_non_string_raisesyscCstd}h|d6td6tdd6dd6}|i|}d|_|i|id|i|itd|i|idS(NR9s
wsgi.inputswebob.is_body_seekableR#R$R%R:(	RR,R&RR)RR;R'Ry(R
R<RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_setter_values


	cCsd}t|}h|d6td6t|d6dd6}|i|}|`|i|id|i|id|i|idS(	NR"s
wsgi.inputswebob.is_body_seekableR#R$R%R0i(	RR,R&RR)RR;R'Ry(R
RFR*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_deleter_Nones


cCsd}t|}h|d6tt|d6}|i|}|i|ihdd6|i|ihdd6hdd6|_|i|id|`|i|id	dS(
Ns{"a":1}s
wsgi.inputR#iRWiRXs{"b":2}R0(RtstrR&RRtjsont	json_bodyR)(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_json_bodys cCsd}t|}h|d6tt|d6}|i|}|i|ihdd6hdd6g|i|ihdd6hdd6ghdd6g|_|i|id|`|i|id	dS(
Ns[{"a":1}, {"b":2}]s
wsgi.inputR#iRWiRXs	[{"b":2}]R0(RRR&RRRRR)(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_json_body_arrays ''csd}t|}h|d6tt|d6}|i||iid|iidtd_|iidii	`|iidfd}|i
t|dS(Nttests
wsgi.inputR#s\u1000R0cs
d_dS(Ni(ttext((R(s1/home/chrism/projects/webob/tests/test_request.pytset_bad_texts(RRR&RRR)RRtencodeRRR(R
R)R*RR((Rs1/home/chrism/projects/webob/tests/test_request.pyttest_text_bodys cCsdd}t|}h|d6tt|d6}|i|}d|_|itt|ddS(NRs
wsgi.inputR#R0R(RRR&Rt_charsetRtAttributeErrortgetattr(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest__text_get_without_charsets 	cCsgd}t|}h|d6tt|d6}|i|}d|_|itt|dddS(NRs
wsgi.inputR#R0Rtabc(RRR&RRRRR7(R
R)R*RR((s1/home/chrism/projects/webob/tests/test_request.pyttest__text_set_without_charsets 	cCshddkl}hdd6}|i|}|i}|it|||i|iiddS(Ni(tNoVarstGETR%sNot a form request(twebob.multidictRRR$R't
isinstancetreasont
startswith(R
RRRtresult((s1/home/chrism/projects/webob/tests/test_request.pyttest_POST_not_POST_or_PUTs
	cCsmd}t|}h|d6dd6hdd6|fd6}|i|}|i}|i|hdd6dS(NR"s
wsgi.inputR$R%RJR6swebob._parsed_post_vars(RRR$R(R
RFR*RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_POST_existing_cache_hits
	cCsddkl}d}t|}h|d6dd6}|i|}|i}|it|||i|iiddS(Ni(RR"s
wsgi.inputtPUTR%sNot an HTML form submission(	RRRRR$R'RRR(R
RRFR*RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_PUT_missing_content_types

	cCsjd}t|}h|d6dd6t|d6td6}|i|}|i}|i|dddS(	Ns#var1=value1&var2=value2&rep=1&rep=2s
wsgi.inputR$R%R#swebob.is_body_seekabletvar1tvalue1(RR&R,RR$R(R
RFR*RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_POST_missing_content_types


	cCsddkl}d}t|}h|d6dd6dd6}|i|}|i}|it|||i|iid	dS(
Ni(RR"s
wsgi.inputRR%s
text/plaintCONTENT_TYPEsNot an HTML form submission(	RRRRR$R'RRR(R
RRFR*RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_PUT_bad_content_types

	cCsd}t|}h|d6td6dd6dd6t|d6}|i|}|i}|i|d	d	|d
}|i|id
|i|id|i|ii	ddS(
NsH------------------------------deb95b63e42a
Content-Disposition: form-data; name="foo"

foo
------------------------------deb95b63e42a
Content-Disposition: form-data; name="bar"; filename="bar.txt"
Content-type: application/octet-stream

these are the contents of the file "bar.txt"

------------------------------deb95b63e42a--
s
wsgi.inputswebob.is_body_seekableR$R%sFmultipart/form-data; boundary=----------------------------deb95b63e42aRR#R6RJsbar.txts-these are the contents of the file "bar.txt"
(
RR,R&RR$RtnametfilenametfileR3(R
t	BODY_TEXTR*RRRRJ((s1/home/chrism/projects/webob/tests/test_request.pyttest_POST_multiparts
	
cCshdd6}|i|}|i}|i|hdd6d|_|i}|i|hdd6d|_|i}|i|hdS(Nsfoo=123tQUERY_STRINGt123R6sfoo=456t456R0(RRRtquery_string(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_GET_reflects_query_string0s
					cCsu|ih}|i}|i|dd|id<|i}|i|d|id=|i}|i|ddS(NR0RR6sfoo=123(RRRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_GET_updates_query_string>s	
	
	cCs=hdd6}|id|}|i|ihdd6dS(Nsa=bRjR5RXRW(RRRf(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt$test_cookies_wo_webob_parsed_cookiesJs
cCshdd6}|id|}|i}x|iiD]u\}}|djo|i||ijq;|djo|i|i||j	q;|i|i||q;WdS(Nsa=bRjR5R#swebob.is_body_seekables
wsgi.input(sCONTENT_LENGTHswebob.is_body_seekable(Rtcopy_getRtitemsR'R(R
RRtclonetktv((s1/home/chrism/projects/webob/tests/test_request.pyt
test_copy_getRs


cCs?|id}d|_|i|it|itdS(NR5sgzip,deflate(Rtaccept_encodingtremove_conditional_headersRtboolRD(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt/test_remove_conditional_headers_accept_encoding`s	
c
Csqddkl}ddkl}|id}|dddddd	||_|i|i|iddS(
Ni(tUTC(tdatetimeR5iiiittzinfo(twebob.datetime_utilsRRRtif_modified_sinceRRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt1test_remove_conditional_headers_if_modified_sincefs!
cCsI|id}d|_|ipt|i|iptdS(NR5R6(Rt
if_none_matchR2R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt-test_remove_conditional_headers_if_none_matchns
	
cCs?|id}d|_|i|it|itdS(NR5sfoo, bar(Rtif_rangeRRRRD(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt(test_remove_conditional_headers_if_rangeus	
cCs9|id}d|_|i|i|iddS(NR5sbytes=0-100(RtrangeRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt%test_remove_conditional_headers_range{s	
cCs0|iddhdd6}|i|idS(NR5RR$R%(RR'tis_body_readable(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_body_readable_POSTscCs0|iddhdd6}|i|idS(NR5RtPATCHR%(RR'R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_body_readable_PATCHscCs0|iddhdd6}|i|idS(NR5RRR%(RtassertFalseR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_body_readable_GETscCs9|iddhdd6}d|_|i|idS(NR5RtWTFR%i
(RR;R'R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt7test_is_body_readable_unknown_method_and_content_lengths	cCs7|iddhdd6td6}|i|idS(NR5RRR%swebob.is_body_readable(RR,R'R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt"test_is_body_readable_special_flags
cCshdd6}|i|}|i}|i|ihdd6|iidd|i}|i|ihdd6|iidd|i}|i|ihdS(Ns	max-age=5tHTTP_CACHE_CONTROLismax-ages
max-age=10i
R0(Rt
cache_controlRt
propertiesRtupdate(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt#test_cache_control_reflects_environs
			cCsh}|i|}d|i_|id}|i|dd|i_|id}|i|dd|_|id}|i|d|`|id|ijdS(NiRs	max-age=5i
s
max-age=10R0(RRtmax_ageRRRR'(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt"test_cache_control_updates_environs

	
cCsEh}|i|}hdd6|_|i}|i|iddS(Nismax-age(RRRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_cache_control_set_dicts
	cCsaddkl}h}|i|}|hdd6dd|_|i}|i|iddS(Ni(tCacheControlismax-agettypetrequest(twebob.cachecontrolRRRRR(R
RRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_cache_control_set_objects	cCs2h}|i|}|i|i|ijdS(N(RR'R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_cache_control_gets_cachedscCsvh}|i|}d}|i|\}}}|i|d|i|dg|idi|ddS(NcSs|ddgdgS(Ns200 OKscontent-types
text/plains...
(scontent-types
text/plain((Rtstart_response((s1/home/chrism/projects/webob/tests/test_request.pytapplicationss200 OKscontent-types
text/plainR0s...
(scontent-types
text/plain(Rtcall_applicationRtjoin(R
RRRtstatustheaderstoutput((s1/home/chrism/projects/webob/tests/test_request.pyt'test_call_application_calls_applications	cCsvh}|i|}d}|i|\}}}|i|d|i|dg|idi|ddS(NcSs |ddg}|dgS(Ns200 OKscontent-types
text/plains...
(scontent-types
text/plain((RRtwrite((s1/home/chrism/projects/webob/tests/test_request.pyRs
s200 OKscontent-types
text/plainR0s...
(scontent-types
text/plain(RRRR(R
RRRRRR((s1/home/chrism/projects/webob/tests/test_request.pyt$test_call_application_provides_writes	cCsnhtd6}|i|}d}|i|\}}}|idi|d|i|dtdS(Ns#test._call_application_called_closecs?|ddg}dtffdY}|d|S(Ns200 OKscontent-types
text/plaintAppItercs eZdZfdZRS(css	dVdS(Ns...
((R
((s1/home/chrism/projects/webob/tests/test_request.pyt__iter__scstd<dS(Ns#test._call_application_called_close(R,(R
(R(s1/home/chrism/projects/webob/tests/test_request.pytcloses(t__name__t
__module__RR((R(s1/home/chrism/projects/webob/tests/test_request.pyRs	s...
(scontent-types
text/plain(R(RRRR((Rs1/home/chrism/projects/webob/tests/test_request.pyRs
R0s...
...
(RDRRRRR,(R
RRRRRR((s1/home/chrism/projects/webob/tests/test_request.pyt>test_call_application_closes_iterable_when_mixed_w_write_callss
		cCs8h}|i|}d}|it|i|dS(NcSs@ytdWnti}nX|ddg|dgS(NsOH NOESs200 OKscontent-types
text/plains...
(scontent-types
text/plain(tRuntimeErrortsystexc_info(RRR((s1/home/chrism/projects/webob/tests/test_request.pyRs
(RRRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt%test_call_application_raises_exc_infos	cCsh}|i|}d}|i|t\}}}}|i|d|i|dg|idi|d|i|dtdS(	NcSs@ytdWnti}nX|ddg|dgS(NsOH NOESs200 OKscontent-types
text/plains...
(scontent-types
text/plain(RRR(RRR((s1/home/chrism/projects/webob/tests/test_request.pyR s
s200 OKscontent-types
text/plainR0s...
i(scontent-types
text/plain(RRR,RRR(R
RRRRRRR((s1/home/chrism/projects/webob/tests/test_request.pyt&test_call_application_returns_exc_infos	cCs|iddhdd6}|i|id|iddhdd6dh}|i|id|iddhdd6dh}|i|iddS(NR5RRR%R$tHEAD(RRtmethod(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__method_subtitution0scCs|iddhdd6}|i|id|i|id|iddhdd6dd}|i|id|i|iddS(NR5Rsapplication/jsonRRR$R0(RRtcontent_typeR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__ctype_in_env<scCs|iddhdd6}|i|id|i|id|iddhdd6dd}|i|id|i|iddS(	NR5Rsapplication/jsonsContent-typeRsContent-TypeR$R0(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__ctype_in_headersGscCs|iddd}|i|id|i|id|iddddd}|i|id|i|iddS(NR5Rsapplication/jsonRR$R0(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__ctype_as_kwRs	cCs&|it|iddddhdS(NR5Rsapplication/jsonR$(Rt
ValueErrorR(R
((s1/home/chrism/projects/webob/tests/test_request.pyt/test_blank__str_post_data_for_unsupported_ctype\s	cCsddkl}|}d|d<d|d<|idd|}|i|id|i|id	|i|id
|i|iddS(Ni(t	MultiDictitfirstitsecondR5R$s!application/x-www-form-urlencodedsfirst=1&second=2i(RRRRRRR)R;(R
RR$R((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__post_urlencodedas	

cCsddkl}|}d|d<d|d<|idd|d	d
}|i|id|i|idd}|i|i||i|id
dS(Ni(RRhRRoRR5R$Rs&multipart/form-data; boundary=boundarysmultipart/form-datas--boundary
Content-Disposition: form-data; name="first"

1
--boundary
Content-Disposition: form-data; name="second"

2
--boundary--i(RRRRRRR)R;(R
RR$Rtexpected((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__post_multipartns	

	c	Csddk}ddkl}ddkl}|}dtdf|d<d|d	<d
|d<|idd
|}|i|id
|i|i	dt
||id}|ii
|d}d}|i|||i|id|it|id|i|it|id	|i|i|idid|i|id	id|i|idd
dS(Ni(t_get_multipart_boundary(Rt	filename1RhRt	filename2RoRt3tthirdR5R$smultipart/form-datascontent-typetboundarys--boundary
Content-Disposition: form-data; name="first"; filename="filename1"

1
--boundary
Content-Disposition: form-data; name="second"; filename="filename2"

2
--boundary
Content-Disposition: form-data; name="third"

3
--boundary--i&(RRo(tcgiR	RRRRRRRRRRR)treplaceR;R'RR$tFieldStoragetvalue(	R
RRRR$RRt	body_normR((s1/home/chrism/projects/webob/tests/test_request.pyttest_blank__post_filess*	


  cCs-|it|iddhdd6dddS(	NR5R$RRhRRs!application/x-www-form-urlencoded(s	filename1Rh(RRR(R
((s1/home/chrism/projects/webob/tests/test_request.pyt#test_blank__post_file_w_wrong_ctypescCs<tidd}|i}|it|i|ddS(NsContent-Types!Content-Length: 337
Content-TypesEXTRA!(t	_test_reqRRRRt
from_bytes(R
t_test_req_copyR((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_bytes_extra_datas	cCs|i}|it}|idt}|i|idd|i|idd|i|ididdd}|i|ddS(Nt	skip_bodys

iiQis<body skipped (len=337)>iP(RR
R	tas_bytesR,RtcountRq(R
RRR)((s1/home/chrism/projects/webob/tests/test_request.pyttest_as_bytes_skip_bodys"cCs&|i}|it|itdS(N(RRRtfrom_stringR	(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_string_deprecatedscCs2|i}|it}|it|idS(N(RR
R	RRt	as_string(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_as_string_deprecateds(aRRRRRRRRRR!R+R-R.R4R8R>R@RARHRIRLRMRNRQRTRURVRYRZR[R]R^R_R`RaRbRcRdReRgRiRkRnRwRxRzR|R}R~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRs									
		
															
				
	
					
																
		
											
																										
					
		
		$						tTestBaseRequestcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTdSZUdTZVdUZWRS(VcCsddkl}|S(Ni(tBaseRequest(R	R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyRscOs|i}|||S(N(R(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRscOs|i}|i||S(N(RR(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRscCsLhdd6}|i|}|i}|i|it|i|ddS(NtOPTIONSR%(RRRt	__class__R(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_methods

	cCs9hdd6}|i|}|i}|i|ddS(Ns1.1tSERVER_PROTOCOL(Rthttp_versionR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_http_versions
	cCs3hdd6}|i|}|i|iddS(Ns/scripttSCRIPT_NAME(RRtscript_name(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_script_names
cCs3hdd6}|i|}|i|iddS(Ns
/path/infot	PATH_INFO(RRt	path_info(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_infos
cCs3hdd6}|i|}|i|iddS(Nt1234R#i(RRR;(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_content_length_getters
cCs<hdd6}|i|}d|_|i|iddS(NR#R#t3456i
(RR;R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt test_content_length_setter_w_strs
	cCs3hdd6}|i|}|i|iddS(NtphredtREMOTE_USER(RRtremote_user(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_remote_users
cCs3hdd6}|i|}|i|iddS(Ns1.2.3.4tREMOTE_ADDR(RRtremote_addr(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_remote_addrs
cCs3hdd6}|i|}|i|iddS(Nsfoo=bar&baz=bamR(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_query_string
s
cCs3hdd6}|i|}|i|iddS(Nssomehost.tldtSERVER_NAME(RRtserver_name(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_server_names
cCs3hdd6}|i|}|i|iddS(Nt6666tSERVER_PORTi
(RRtserver_port(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_server_port_getters
cCs<hdd6}|i|}d|_|i|iddS(NR2R3t6667i(RR4R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt#test_server_port_setter_with_strings
	cCsLhdd6}|i|}|it|it|i|iddS(Ns/scriptR(RR'Rtuscript_nameRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_uscript_name&s
cCsLhdd6}|i|}|it|it|i|iddS(Ns
/path/infoR (RR'Rt
upath_infoRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_upath_info-s
cCs[hdd6}|i|}td|_|it|it|i|iddS(Ns
/path/infoR s/another(RRR:R'RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_upath_info_set_unicode4s

cCs3hdd6}|i|}|i|iddS(Nsapplication/xml+foobarR(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt&test_content_type_getter_no_parameters<s
cCs3hdd6}|i|}|i|iddS(Ns%application/xml+foobar;charset="utf8"Rsapplication/xml+foobar(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt%test_content_type_getter_w_parametersBs
cCsOhdd6}|i|}d|_|i|id|id|jdS(Ns%application/xml+foobar;charset="utf8"RR0(RRRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_content_type_setter_w_NoneHs

	cCsPhdd6}|i|}d|_|i|id|i|dddS(Ns%application/xml+foobar;charset="utf8"Rstext/xmlstext/xml;charset="utf8"(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt:test_content_type_setter_existing_paramter_no_new_paramterPs

	cCsLhdd6}|i|}|`|i|id|id|jdS(Ns%application/xml+foobar;charset="utf8"RR0(RRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt.test_content_type_deleter_clears_environ_valueXs

cCsEh}|i|}|`|i|id|id|jdS(NR0R(RRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt*test_content_type_deleter_no_environ_value`s
cCsTd}h|d6dd6}|i|}|i}|i|h|d6dd6dS(Ns%application/xml+foobar;charset="utf8"RRR#sContent-TypesContent-Length(RRR(R
RRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_headers_gettergs

		
cCsnd}h|d6dd6}|i|}hdd6|_|i|ihdd6|i|hdd6dS(Ns%application/xml+foobar;charset="utf8"RRR#tSpamtQuxtHTTP_QUX(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_headers_setterrs

csLd}h|d6dd6}|i|fd}|it|dS(Ns%application/xml+foobar;charset="utf8"RRR#cs
`dS(N(R((R(s1/home/chrism/projects/webob/tests/test_request.pyR{s(RRR(R
RRR{((Rs1/home/chrism/projects/webob/tests/test_request.pyttest_no_headers_deleter}s

cCs3hdd6}|i|}|i|iddS(Ns192.168.1.1tHTTP_X_FORWARDED_FOR(RRtclient_addr(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_client_addr_xff_singlevals
cCs3hdd6}|i|}|i|iddS(Ns192.168.1.1, 192.168.1.2RIs192.168.1.1(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_client_addr_xff_multivals
cCs:hdd6dd6}|i|}|i|iddS(Ns192.168.1.2R+s192.168.1.1RI(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_client_addr_prefers_xffs

cCs3hdd6}|i|}|i|iddS(Ns192.168.1.2R+(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_client_addr_no_xffs
cCs,h}|i|}|i|iddS(N(RRRJR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt&test_client_addr_no_xff_no_remote_addrscCs:hdd6dd6}|i|}|i|iddS(Nthttpswsgi.url_schemesexample.comt	HTTP_HOSTt80(RRt	host_port(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt&test_host_port_w_http_host_and_no_ports

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:80RQRR(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt,test_host_port_w_http_host_and_standard_ports

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:8888RQt8888(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt+test_host_port_w_http_host_and_oddball_ports

cCs:hdd6dd6}|i|}|i|iddS(Nthttpsswsgi.url_schemesexample.comRQt443(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt,test_host_port_w_http_host_https_and_no_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:443RQRY(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt2test_host_port_w_http_host_https_and_standard_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:8888RQRV(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt1test_host_port_w_http_host_https_and_oddball_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemet4333R3(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_port_wo_http_hosts

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comRQshttp://example.com(RRthost_url(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt%test_host_url_w_http_host_and_no_ports

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:80RQshttp://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt+test_host_url_w_http_host_and_standard_ports

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:8888RQshttp://example.com:8888(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt*test_host_url_w_http_host_and_oddball_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.comRQshttps://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt+test_host_url_w_http_host_https_and_no_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:443RQshttps://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt1test_host_url_w_http_host_https_and_standard_ports

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:4333RQshttps://example.com:4333(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt0test_host_url_w_http_host_https_and_oddball_ports

cCsAhdd6dd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.comR/R]R3shttps://example.com:4333(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_url_wo_http_hosts


cCsQ|id}tdd|_|i}|i|it|i|ddS(Ns/%C3%ABs/ësutf-8shttp://localhost/%C3%AB(RRRtapplication_urlRRR(R
tinsttapp_url((s1/home/chrism/projects/webob/tests/test_request.pyttest_application_url
s
	cCsQ|id}tdd|_|i}|i|it|i|ddS(Ns/%C3%ABs/ësutf-8shttp://localhost/%C3%AB/%C3%AB(RRRtpath_urlRRR(R
RhRi((s1/home/chrism/projects/webob/tests/test_request.pyt
test_path_urls
	cCsQ|id}tdd|_|i}|i|it|i|ddS(Ns/%C3%ABs/ësutf-8s/%C3%AB/%C3%AB(RRRtpathRRR(R
RhRi((s1/home/chrism/projects/webob/tests/test_request.pyt	test_paths
	cCsOhdd6dd6dd6dd6d	d
6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s/script/path/info(RRtpath_qs(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_qs_no_qss

cCsVhdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs!/script/path/info?foo=bar&baz=bam(RRRo(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_qs_w_qs)s

cCsOhdd6dd6dd6dd6d	d
6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s#http://example.com/script/path/info(RRturl(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_url_no_qs4s

cCsVhdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs3http://example.com/script/path/info?foo=bar&baz=bam(RRRr(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt
test_url_w_qs>s

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs
other/pages$http://example.com/script/other/page(RRtrelative_urlR,(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt.test_relative_url_to_app_true_wo_leading_slashJs

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs/other/pageshttp://example.com/other/page(RRRuR,(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt-test_relative_url_to_app_true_w_leading_slashVs

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs/other/pageshttp://example.com/other/page(RRRuRD(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt4test_relative_url_to_app_false_other_w_leading_slashbs

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs
other/pages)http://example.com/script/path/other/page(RRRuRD(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyt5test_relative_url_to_app_false_other_wo_leading_slashns

cCslhdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR0R (Rt
path_info_popRR(R
RRtpopped((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_info_pop_emptyzs

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
ddS(
NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR5R R0s/script/(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyt%test_path_info_pop_just_leading_slashs

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR Rms/script/paths/info(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyt'test_path_info_pop_non_empty_no_patterns

cCsddk}|id}hdd6dd6dd6d	d
6dd6}|i|}|i|}|i|d|i|d
d	|i|dddS(
NitmissRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR (tretcompileRRzRR(R
RtPATTERNRRR{((s1/home/chrism/projects/webob/tests/test_request.pyt+test_path_info_pop_non_empty_w_pattern_misss

cCsddk}|id}hdd6dd6dd6d	d
6dd6}|i|}|i|}|i|d|i|d
d
|i|dddS(NiRmRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s/script/paths/info(RRRRzR(R
RRRRR{((s1/home/chrism/projects/webob/tests/test_request.pyt*test_path_info_pop_non_empty_w_pattern_hits

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs//path/infoR Rms
/script//paths/info(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyt'test_path_info_pop_skips_empty_elementss

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR0R (Rtpath_info_peekRR(R
RRtpeeked((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_info_peek_emptys

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR5R R0(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt&test_path_info_peek_just_leading_slashs

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs/pathR Rm(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_info_peek_non_emptys

cCs$|ih}|i|idS(N(RR'tis_xhr(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_xhr_no_headerscCs1hdd6}|i|}|i|idS(NtnotAnXMLHTTPRequesttHTTP_X_REQUESTED_WITH(RR'R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_xhr_header_misss
cCs0hdd6}|i|}|i|idS(NtXMLHttpRequestR(RR'R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_is_xhr_header_hits
cCs3hdd6}|i|}|i|iddS(Nsexample.com:8888RQ(RRthost(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_getter_w_HTTP_HOSTs
cCs:hdd6dd6}|i|}|i|iddS(Nsexample.comR/RVR3sexample.com:8888(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_getter_wo_HTTP_HOSTs

cCs6h}|i|}d|_|i|dddS(Nsexample.com:8888RQ(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_setters	cCs9hdd6}|i|}|`|id|jdS(Nsexample.com:8888RQ(RRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_deleter_hits
cCsh}|i|}|`dS(N(RR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_deleter_missscCs3hdd6}|i|}|i|iddS(Nsexample.comRQ(RRtdomain(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_domain_nocolons
cCs3hdd6}|i|}|i|iddS(Nsexample.com:8888RQsexample.com(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_domain_withcolon"s
cCs)|ih}|it|iddS(NRW(RRtKeyErrortencget(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyt"test_encget_raises_without_default'scCs/|ih}|i|iddddS(NRW(RRRR(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyt&test_encget_doesnt_raises_with_default+scCsbtodid}nd}|ih|d6}|i|idddtdddS(Nsëslatin-1RWtencattrturl_encodingsutf-8(RtdecodeRRRR(R
tvalRh((s1/home/chrism/projects/webob/tests/test_request.pyttest_encget_with_encattr/scCsktodid}nd}|ih|d6}d|_|i|idddtdddS(Nsëslatin-1RWRtmy_encoding(RRRRRRR(R
RRh((s1/home/chrism/projects/webob/tests/test_request.pyt test_encget_with_encattr_latin_18s	cCsStodid}nd}|ih|d6}|i|id|dS(Nsëslatin-1RW(RRRRR(R
RRh((s1/home/chrism/projects/webob/tests/test_request.pyttest_encget_no_encattrBs
cCsE|id}|id}|i|it|i|ddS(Ns	/%C3%AB/cRWshttp://localhost/%C3%AB/a(RRuRRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyttest_relative_urlJscCsjtodid}nd}|ih|d6}|id}|i|it|i|ddS(NRslatin-1t	HTTP_FLUBtFlub(RRRRRRR(R
RRhR((s1/home/chrism/projects/webob/tests/test_request.pyttest_header_getterPs
cCsY|ih}d|_|i|ihdd6hdd6|_|i|iddS(Ns	{"a":"1"}RhRWRos	{"a":"2"}(RR)RR(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyRZs
	cCsF|ihdd6}|i}|i|it|i|ddS(Nsexample.comRQ(RRRRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyt
test_host_getas	cCsM|ihdd6dd6}|i}|i|it|i|ddS(Nsexample.comR/RRR3sexample.com:80(RRRRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_get_w_no_http_hostgs	(XRRRRRRRRR"R$R&R*R-R.R1R5R7R9R;R<R=R>R?R@RARBRCRGRHRKRLRMRNRORTRURWRZR[R\R^R`RaRbRcRdReRfRjRlRnRpRqRsRtRvRwRxRyR|R}R~RRRRRRRRRRRRRRRRRRRRRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRs																											
																							
		
							
	
			
	
	
	
															
			
		tTestLegacyRequestcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTRS(ScCsddkl}|S(Ni(t
LegacyRequest(R	R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyRoscOs|i}|||S(N(R(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRsscOs|i}|i||S(N(RR(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRwscCs3hdd6}|i|}|i|iddS(NRR%(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR{s
cCs3hdd6}|i|}|i|iddS(Ns1.1R(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs3hdd6}|i|}|i|iddS(Ns/scriptR(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs3hdd6}|i|}|i|iddS(Ns
/path/infoR (RRR!(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR"s
cCs3hdd6}|i|}|i|iddS(NR#R#i(RRR;(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR$s
cCs<hdd6}|i|}d|_|i|iddS(NR#R#R%i
(RR;R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR&s
	cCs3hdd6}|i|}|i|iddS(NR'R((RRR)(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR*s
cCs3hdd6}|i|}|i|iddS(Ns1.2.3.4R+(RRR,(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR-s
cCs3hdd6}|i|}|i|iddS(Nsfoo=bar&baz=bamR(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR.s
cCs3hdd6}|i|}|i|iddS(Nssomehost.tldR/(RRR0(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR1s
cCs3hdd6}|i|}|i|iddS(NR2R3i
(RRR4(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR5s
cCs<hdd6}|i|}d|_|i|iddS(NR2R3R6i(RR4R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR7s
	cCsehdd6}|i|}|it|it|i}|i|it|i|ddS(Ns/scriptR(RR'RR8RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyR9s
	cCsOhdd6}|i|}|i}|it|t|i|ddS(Ns
/path/infoR (RR:R'RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyR;s

	cCs^hdd6}|i|}td|_|i}|it|t|i|ddS(Ns
/path/infoR s/another(RRR:R'RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyR<s
	cCs3hdd6}|i|}|i|iddS(Nsapplication/xml+foobarR(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR=s
cCs3hdd6}|i|}|i|iddS(Ns%application/xml+foobar;charset="utf8"Rsapplication/xml+foobar(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR>s
cCsOhdd6}|i|}d|_|i|id|id|jdS(Ns%application/xml+foobar;charset="utf8"RR0(RRRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR?s

	cCsPhdd6}|i|}d|_|i|id|i|dddS(Ns%application/xml+foobar;charset="utf8"Rstext/xmlstext/xml;charset="utf8"(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR@s

	cCsLhdd6}|i|}|`|i|id|id|jdS(Ns%application/xml+foobar;charset="utf8"RR0(RRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRAs

cCsEh}|i|}|`|i|id|id|jdS(NR0R(RRRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRBs
cCsTd}h|d6dd6}|i|}|i}|i|h|d6dd6dS(Ns%application/xml+foobar;charset="utf8"RRR#sContent-TypesContent-Length(RRR(R
RRRR((s1/home/chrism/projects/webob/tests/test_request.pyRC
s

		
cCsd}h|d6dd6}|i|}hdd6|_|i|ihdd6|i|dtd|i|hdd6dS(Ns%application/xml+foobar;charset="utf8"RRR#RDRERF(RRRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyRGs

csLd}h|d6dd6}|i|fd}|it|dS(Ns%application/xml+foobar;charset="utf8"RRR#cs
`dS(N(R((R(s1/home/chrism/projects/webob/tests/test_request.pyR{'s(RRR(R
RRR{((Rs1/home/chrism/projects/webob/tests/test_request.pyRH!s

cCs3hdd6}|i|}|i|iddS(Ns192.168.1.1RI(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRK+s
cCs3hdd6}|i|}|i|iddS(Ns192.168.1.1, 192.168.1.2RIs192.168.1.1(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRL2s
cCs:hdd6dd6}|i|}|i|iddS(Ns192.168.1.2R+s192.168.1.1RI(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRM9s

cCs3hdd6}|i|}|i|iddS(Ns192.168.1.2R+(RRRJ(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRN@s
cCs,h}|i|}|i|iddS(N(RRRJR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyROFscCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comRQRR(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRTKs

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:80RQRR(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRURs

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:8888RQRV(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRWYs

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.comRQRY(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRZ`s

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:443RQRY(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR[gs

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:8888RQRV(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR\ns

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemeR]R3(RRRS(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR^us

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comRQshttp://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyR`|s

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:80RQshttp://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRas

cCs:hdd6dd6}|i|}|i|iddS(NRPswsgi.url_schemesexample.com:8888RQshttp://example.com:8888(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRbs

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.comRQshttps://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRcs

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:443RQshttps://example.com(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRds

cCs:hdd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.com:4333RQshttps://example.com:4333(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRes

cCsAhdd6dd6dd6}|i|}|i|iddS(NRXswsgi.url_schemesexample.comR/R]R3shttps://example.com:4333(RRR_(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRfs


cCsP|id}d|_|i}to|i|dn|i|ddS(Ns/%C3%ABs/ështtp://localhost/%C3%83%C2%ABshttp://localhost/%C3%AB(RRRgRR(R
RhRi((s1/home/chrism/projects/webob/tests/test_request.pyRjs		cCsP|id}d|_|i}to|i|dn|i|ddS(Ns/%C3%ABs/ës*http://localhost/%C3%83%C2%AB/%C3%83%C2%ABshttp://localhost/%C3%AB/%C3%AB(RRRkRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyRls			cCsP|id}d|_|i}to|i|dn|i|ddS(Ns/%C3%ABs/ës/%C3%83%C2%AB/%C3%83%C2%ABs/%C3%AB/%C3%AB(RRRmRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyRns		cCsOhdd6dd6dd6dd6d	d
6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s/script/path/info(RRRo(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRps

cCsVhdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs!/script/path/info?foo=bar&baz=bam(RRRo(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRqs

cCsOhdd6dd6dd6dd6d	d
6}|i|}|i|iddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s#http://example.com/script/path/info(RRRr(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRss

cCsVhdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs3http://example.com/script/path/info?foo=bar&baz=bam(RRRr(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRts

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs
other/pages$http://example.com/script/other/page(RRRuR,(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRvs

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs/other/pageshttp://example.com/other/page(RRRuR,(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRws

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs/other/pageshttp://example.com/other/page(RRRuRD(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRxs

cCs_hdd6dd6dd6dd6d	d
6dd6}|i|}|i|id
tddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR sfoo=bar&baz=bamRs
other/pages)http://example.com/script/path/other/page(RRRuRD(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRys

cCslhdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dddS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR0R (RRzRR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyR|(s

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
ddS(
NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR5R R0s/script/(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyR}4s

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR Rms/script/paths/info(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyR~As

cCsddk}|id}hdd6dd6dd6d	d
6dd6}|i|}|i|}|i|d|i|d
d	|i|dddS(
NiRRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR (RRRRzRR(R
RRRRR{((s1/home/chrism/projects/webob/tests/test_request.pyRNs

cCsddk}|id}hdd6dd6dd6d	d
6dd6}|i|}|i|}|i|d|i|d
d
|i|dddS(NiRmRPswsgi.url_schemesexample.comR/RRR3s/scriptRs
/path/infoR s/script/paths/info(RRRRzR(R
RRRRR{((s1/home/chrism/projects/webob/tests/test_request.pyR]s

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d
dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs//path/infoR Rms
/script//paths/info(RRzR(R
RRR{((s1/home/chrism/projects/webob/tests/test_request.pyRls

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR0R (RRRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyRys

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRR5R R0(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyRs

cCshdd6dd6dd6dd6d	d
6}|i|}|i}|i|d|i|dd|i|d
d	dS(NRPswsgi.url_schemesexample.comR/RRR3s/scriptRs/pathR Rm(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyRs

cCs$|ih}|i|idS(N(RR'R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyRscCs1hdd6}|i|}|i|idS(NRR(RR'R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs0hdd6}|i|}|i|idS(NRR(RR'R(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs3hdd6}|i|}|i|iddS(Nsexample.com:8888RQ(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs:hdd6dd6}|i|}|i|iddS(Nsexample.comR/RVR3sexample.com:8888(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs

cCs6h}|i|}d|_|i|dddS(Nsexample.com:8888RQ(RRR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs	cCs9hdd6}|i|}|`|id|jdS(Nsexample.com:8888RQ(RRR'(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCsh}|i|}|`dS(N(RR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyRscCs)|ih}|it|iddS(NRW(RRRR(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyRscCs/|ih}|i|iddddS(NRW(RRRR(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyRscCsbtodid}nd}|ih|d6}|i|idddtdddS(Nsëslatin-1RWRR(RRRRRR(R
RRh((s1/home/chrism/projects/webob/tests/test_request.pyRscCs\todid}nd}|ih|d6}|i|idtdddS(Nsëslatin-1RW(RRRRRR(R
RRh((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCsM|id}|id}to|i|dn|i|ddS(Ns	/%C3%AB/cRWshttp://localhost/%C3%83%C2%AB/ashttp://localhost/%C3%AB/a(RRuRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCsWtodid}nd}|ih|d6}|id}|i|ddS(NRslatin-1RR(RRRRR(R
RRhR((s1/home/chrism/projects/webob/tests/test_request.pyRs
cCs6|ih}d|_|i|ihdd6dS(Ns	{"a":"1"}RhRW(RR)RR(R
Rh((s1/home/chrism/projects/webob/tests/test_request.pyRs	cCs3|ihdd6}|i}|i|ddS(Nsexample.comRQ(RRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_get_w_http_hosts	cCs:|ihdd6dd6}|i}|i|ddS(Nsexample.comR/RRR3sexample.com:80(RRR(R
RhR((s1/home/chrism/projects/webob/tests/test_request.pyR	s	(URRRRRRRRR"R$R&R*R-R.R1R5R7R9R;R<R=R>R?R@RARBRCRGRHRKRLRMRNRORTRURWRZR[R\R^R`RaRbRcRdReRfRjRlRnRpRqRsRtRvRwRxRyR|R}R~RRRRRRRRRRRRRRRRRRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRms																													
																				
		
	
		
							
	
			
	
	
	
																			tTestRequestConstructorWarningscBs,eZdZdZdZdZRS(cCsddkl}|S(Ni(R(R	R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyR	scOs|i}|||S(N(R(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyR
	scCsitidtii}z-|~}tid|ihdtWdQX|it|ddS(Ntrecordtalwaystunicode_errorsi(	twarningstcatch_warningsR,t__exit__t	__enter__tsimplefilterRRR&(R
Rttw((s1/home/chrism/projects/webob/tests/test_request.pyttest_ctor_w_unicode_errors	s)
cCsitidtii}z-|~}tid|ihdtWdQX|it|ddS(NRRtdecode_param_namesi(	RRR,RRRRRR&(R
RtR((s1/home/chrism/projects/webob/tests/test_request.pyttest_ctor_w_decode_param_names	s)
(RRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyR	s			tTestRequestWithAdhocAttrcBsGeZdZdZdZdZdZdZdZRS(cOs ddkl}|i||S(Ni(R(R	RR(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyR	scCs:|id}d|_|i|idhdd6dS(NR5iswebob.adhoc_attrsR6(RR6RR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_set!	s	cCs@|iddhhd6}d|_|i|idhdS(NR5Rswebob.adhoc_attrsi(Rtrequest_body_tempfile_limitRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_set_nonadhoc&	s	cCs:|iddhhdd6d6}|i|iddS(NR5RiR6swebob.adhoc_attrs(RRR6(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_get+	s#cCs)|id}|itt|ddS(NR5t	some_attr(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_get_missing/	scCsD|iddhhdd6d6}|`|i|idhdS(NR5RiR6swebob.adhoc_attrs(RR6RR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_del3	s#cCs)|id}|itt|ddS(NR5R(RRRtdelattr(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_adhoc_attrs_del_missing8	s(	RRRRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyR	s						tTestRequest_functionalcBs	eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:RS(9cCsddkl}|S(Ni(R(R	R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyR>	scOs|i}|||S(N(R(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRB	scOs|i}|i||S(N(RR(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRF	scCs|id}|it\}}}|i|ddi|}|id|j|id|j|id|jdS(NR5s200 OKR0tHellos
MultiDict([])s$post is <NoVars: Not a form request>(RRt	simpleappRRR'(R
RRt
headerlisttapp_itertres((s1/home/chrism/projects/webob/tests/test_request.pyt	test_getsJ	scCs|id}|it\}}}di|}|id|j|id|j|id|j|id|jdS(Ns
/?name=georgeR0Rs'name's'george'sVal is (RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_gets_with_query_stringS	scCsM|id}|it\}}}di|}|id|jdS(NR5R0sThe languages are: [](RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_language_parsing1\	scCsZ|iddhdd6}|it\}}}di|}|id|jdS(NR5Rsda, en-gb;q=0.8sAccept-LanguageR0slanguages are: ['da', 'en-gb'](RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_language_parsing2b	s
cCsZ|iddhdd6}|it\}}}di|}|id|jdS(NR5Rsen-gb;q=0.8, dasAccept-LanguageR0slanguages are: ['da', 'en-gb'](RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_language_parsing3i	scCsZ|iddhdd6}|it\}}}di|}|id|jdS(NR5Rs	text/htmltAcceptR0saccepttypes is: text/html(RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_mime_parsing1q	scCsZ|iddhdd6}|it\}}}di|}|id|jdS(NR5Rsapplication/xmlRR0saccepttypes is: application/xml(RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_mime_parsing2y	scCsZ|iddhdd6}|it\}}}di|}|id|jdS(NR5Rsapplication/xml,*/*RR0saccepttypes is: application/xml(RRRRR'(R
RRRRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_mime_parsing3	scCsQ|idi}|i||i|iddhdd6i|iddhdd6}|i|i|it|iidg|iddddg}|i|iid	dgd|i|iidd	gd|idddd
g}|i|iiddgd|i|iiddgddS(NR5RR0Rs
text/plains*/*tacceptstext/*sapplication/x-foos	message/*s
message/x-foo(RRR'RRt
best_matchR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_accept_best_match	s('cCsddg}dddddg}xL|D]D\}}|iddh|d	6}|i|ii||q(Wdd
g}ddg}xL|D]D\}}|iddh|d	6}|i|ii||qWd
dg}ddg}xL|D]D\}}|iddh|d	6}|i|ii||qWddg}ddd g}xE|D]=\}}|idd|}|i|ii||q`WdS(!Nsapplication/xbel+xmlsapplication/xmlsapplication/xbel+xml; q=1sapplication/xml; q=1sapplication/*; q=1s*/*R5RRstext/xmlstext/*;q=0.5,*/*; q=0.1s%text/html,application/atom+xml; q=0.9sapplication/jsons	text/htmls&application/json, text/javascript, */*s!application/json, text/html;q=0.9s	image/pngsimage/*simage/*, application/xmlR(sapplication/xbel+xmlsapplication/xbel+xml(sapplication/xbel+xml; q=1sapplication/xbel+xml(sapplication/xml; q=1sapplication/xml(sapplication/*; q=1sapplication/xbel+xml(s*/*sapplication/xbel+xml(stext/*;q=0.5,*/*; q=0.1stext/xml(s%text/html,application/atom+xml; q=0.9N(s&application/json, text/javascript, */*sapplication/json(s!application/json, text/html;q=0.9sapplication/json(s	image/pngs	image/png(simage/*s	image/png(simage/*, application/xmlsapplication/xml(RRRRR(R
t	supportedttestsRtgetRtoffered((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_mimeparse	s@	 	 	 	cCshdd6dd6dd6dd6d	d
6}|idd|}|it\}}}d
i|}xLddddddddddddfD]}|it||jqWdS(NsSat, 29 Oct 1994 19:43:31 GMTsIf-Modified-Sincesvar1=value1tCookiesMozilla 4.0 (compatible; MSIE)s
User-Agents"etag001", "etag002"s
If-None-MatchRsX-Requested-Withs
/?foo=bar&bazRR0sif_modified_since: s7datetime.datetime(1994, 10, 29, 19, 43, 31, tzinfo=UTC)suser_agent: 'Mozillasis_xhr: Truescookies is <RequestCookiesRRsparams is NestedMultiDictR6RJRPs(if_none_match: <ETag etag001 or etag002>(RRRRR'R(R
RRRRRRtthing((s1/home/chrism/projects/webob/tests/test_request.pyttest_headers	s0
cCs|id}d|id<|i|ihd|id<|i|ihdd6d|id<|i|ihd|id<|i|ihd	|id<|i|ihd
d6dd
6dd6dd6d|id<|i|ihdd6dS(NR5s070-it-:><?0Rsfoo=barRJR6s...s=foosIdismiss-top=6; CP=null*; PHPSESSID=0a539d42abc001cdc762809248d4beed; a=42snull*tCPt 0a539d42abc001cdc762809248d4beedt	PHPSESSIDt42RWt6sdismiss-topsfo234{=bar blub=BlahtBlahtblub(RRRRf(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_bad_cookie	s"





cCs:|id}d|id<|i|ihdd6dS(NR5sfoo="?foo"; Path=/Rs?fooR6(RRRRf(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_cookie_quoting	s
cCsEd}|i|}|i|i||i|ii|dS(Ns/:@&+$,/bar(RRRmR'Rrtendswith(R
RmR((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_quoting	scCs|id}d|_d|_|it|iidddg|ii}|it|idddgd	|d<|it|iddg|id
}tdd}|i	|t|i
ij|i|i
|d
dS(Ns	/?a=1&b=2R$sb=3RWRhRXRoRt4s
/?%E1%80%80=xs\u1000tunicode_escapeRu(RWRh(RXRo(RXR(RWRh(RXRo(RXR(RWRh(RXR(RRR)RtlisttparamsRtcopyRR'Rtkeys(R
Rt
new_paramsR((s1/home/chrism/projects/webob/tests/test_request.pyttest_params
s		
""cCs
|iddddddd}|i}|i|i|i|j	|iddddtd	d
d}|it|id|i}|i|i|i|j	|i|id	|i	}|i|i|i|j|i|i	|jdS(
NR5RR$R)s	some textRiR(t
0123456789R;i
RC(
RR1t	copy_bodyR'tUnseekableInputthasattrtmake_body_seekableRR)R((R
Rt
old_body_file((s1/home/chrism/projects/webob/tests/test_request.pyttest_copy_body
s 		
	
	
cCs|iddddtddd}|it|id|it|iid	|i}|i	}|i|i|ijo
|j	n|i
|iddS(
NR5RR$R(RR;i
RCi(RtUnseekableInputWithSeekR'RR1RtIOErrorRCR(RRR)(R
RRtreq2((s1/home/chrism/projects/webob/tests/test_request.pyttest_broken_seek'
s		cCs|iddddd}|i|i|i|id|i|id|`|i|id|i|iddS(	NR5RRR)R6iR0i(RR'RyRR)R;(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt
test_set_body4
scCs-|id}d|id<|iidS(NR5t0tHTTP_CONTENT_LENGTH(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_broken_clen_header=
s
cCs-|id}d|id<|iidS(NR5i(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_nonstr_keysD
s
cCs<|id}d|_|i|idhdd6fdS(NR5sDigest uri="/?a=b"tDigests/?a=bturi(Rt
authorizationR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_authorizationJ
s	cCsx|id}t|i}|i|||id}d|_d|_t|i}|i||dS(Ns(http://example.com:8000/test.html?paramsshttp://example.com/test2R$stest=example(RRRt	equal_reqRR)(R
Rtinp((s1/home/chrism/projects/webob/tests/test_request.pyt
test_as_bytesO
s		cCsx|id}t|i}|i|||id}d|_d|_t|i}|i||dS(Ns(http://example.com:8000/test.html?paramsshttp://example.com/test2R$stest=example(RRtas_textRRR)(R
RR	((s1/home/chrism/projects/webob/tests/test_request.pyttest_as_textZ
s		cCsE|ihdd}|id|ij|id|ijdS(NR;scontent-lengthscontent-type(RRR'R(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_req_kw_none_vale
scCsC|id}|id=|i|id|i|iddS(NR5RR0(RRRRR8(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt
test_env_keysj
s
cCs0ddkl}|}|it|ddS(Ni(t	NoDefaults(No Default)(R	RRtrepr(R
Rtnd((s1/home/chrism/projects/webob/tests/test_request.pyttest_repr_nodefaultq
scCs|it|idddS(NR(RRRR(R
((s1/home/chrism/projects/webob/tests/test_request.pyttest_request_noenviron_paramv
scCs_|it|ihdd6dd|ihdd6dd}|it|ddddS(NiRWtthis_does_not_existR0s	127.0.0.1(RRRRRR(R
tr((s1/home/chrism/projects/webob/tests/test_request.pyttest_unexpected_kwz
s	cCs|ihdd6hdd6}|id|ij|it|d|`|id|ij|ihdd6dd}|i|iddjd|_|i|iddjdS(NiRWs	text/htmlRRs-charset=utf-8;application/atom+xml;type=entrys
charset=utf-8(RR'RRR(R
RRW((s1/home/chrism/projects/webob/tests/test_request.pyttest_conttype_set_del
s 	
	cCshdd6dd6dd6dd6d	d
6dd6d
d6}|ihdd6d|}xP|iD]B}|i||ijo#d|iidd|ijq`Whdd6|_|it|iitddgdS(Nswww.example.comtHostsen-us,en;q=0.5sAccept-Languagesgzip,deflatesAccept-EncodingsISO-8859-1,utf-8;q=0.7,*;q=0.7sAccept-Charsett115s
Keep-Alives
keep-alivet
Connections	max-age=0s
Cache-ControliRWRtHTTP_t-t_tApachetServertHTTP_SERVER(	RRR'RtupperRRRtset(R
RRti((s1/home/chrism/projects/webob/tests/test_request.pyt
test_headers2
s


*cCs|ihdd6hdd6}|i|id|ihdd6hdd6dd	6}|i|id
|ihdd6hdd6dd	6}|i|id
dS(NRPswsgi.url_schemeswww.example.comRshttp://www.example.comt	localhostR0iR4shttp://localhost:5000RXishttps://localhost(RRR_(R
RW((s1/home/chrism/projects/webob/tests/test_request.pyt
test_host_url
s

cCs|ihdd6hdd6dd6}|i|id|i|id|i|id|i|id|i|id|i|iddS(	NiRWs/foo/barR!R0RR6RJ(RRRRzR(R
RW((s1/home/chrism/projects/webob/tests/test_request.pyttest_path_info_p
s'cCs|ihd	hdd6fd6hdd6d6}hdd6|_|id|ij|i|idd
hdd6f|`|id|ij|ihhdd6d6}|i|ihdd6hdd6|_|i|idhdd6|`|id|ijdS(NtyRuswsgiorg.routing_argsRRs
paste.urlvarstworldthello(((RRKR'RR(R
RW((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlvars_property
scCs|ihhdd6d6}|i|id	hdd6|_|i|idhdd6hdd6f|ihdd6}hdd6|_|i|idhdd6hf|`|id|ijdS(
NRRs
paste.urlvarsR)R*swsgiorg.routing_argsiRW((RRR\RR'(R
RW((s1/home/chrism/projects/webob/tests/test_request.pyttest_urlargs_property
scCst|ihdd6dddd}|i|idd|_|id|ij|`|id|ijdS(	NRPswsgi.url_schemeR0R%R4islocalhost:5000RQ(RRRR'R(R
RW((s1/home/chrism/projects/webob/tests/test_request.pyttest_host_property
s		c	Csddk}dtfdY}|i}|i}|t|id}|ihdd6dd6d|t|i|}|it|i	t|i|d|i
tt|d	t
d
d|_	|i|i	d|ihdd6dd
d|t|i}|it|id|i|it|id|ihdd6dd
dtt|i}|it|id|i|it|iddS(NitDummyIOcBseZdZddZRS(cSs
||_dS(N(ttxt(R
R/((s1/home/chrism/projects/webob/tests/test_request.pyt__init__
sicSs|id|!S(Ni(R/(R
tn((s1/home/chrism/projects/webob/tests/test_request.pyR3
s(RRR0R3(((s1/home/chrism/projects/webob/tests/test_request.pyR.
s	iRWR$R%R(R)shello worldR0RRRC(tstringRRRR&t
ascii_lettersRRRR)RRR7RRR'RR1RR(R
R2R.Rtlimittlen_strlR((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_property
s.
	*		

cCs=|ihdd6dd6}|it|iddS(NRR#R0R)s(invalid WSGI environ)>(RR'RR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_repr_invalidscCstd}|i}|it|i|td}|i|}|it|||it|idtd}|it|i|dS(Nshello worldsGET /webob/ HTTP/1.1
Host: pythonpaste.org
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
s(invalid WSGI environ)>s*GET /webob/ HTTP/1.1
Host pythonpaste.org
(	RRRRt	from_fileR'RRR(R
tioRtval_fileR((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_garbage_files		cCsddk}|i}|it}|it|||it|id|id|ijp
d|ij|id|i	j|i|i
dj	|i|i
d|id|i
jd}|i||i
j|i|idd|id	}|it||i|i|id
|iid|i|ii|tidd
}|i|i||it}|id|ij|i|iti|it|itddS(Nis(invalid WSGI environ)>s
s
t,iQR6s.these are the contents of the file 'bar.txt'
RJsapplication/octet-streamisContent-Types!Content-Length: 337
Content-TypeRtxx(RRR
R	R'RRRRRR;RRR)RRRRRCR3RRt
_test_req2RtrstripRR(R
RRRtbar_contentsRJRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_bytes4s6

	cCsddk}|i}|ittd}|it|||it|id|id|i	jp
d|i	j|id|i
j|i|idj	|i
|id|id|ijd	}|i||ij|i
|idd|id
}|it||i|i
|id|iid|i
|ii|tid
d}|i
|i||it}|id|ij|i
|iti|it|itddS(Nisutf-8s(invalid WSGI environ)>s
s
R<iQR6s.these are the contents of the file 'bar.txt'
RJsapplication/octet-streamisContent-Types!Content-Length: 337
Content-TypeRR=(RRt	from_textRR	R'RRRRRR;RRR)RRRRRCR3RRR
R>RR?RR(R
RRRR@RJRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_from_textXs6

	cCs|it|iddd|it|iddd|iddd}|i|iiddd|i|iiddd|i|iid	dd
|i|iiddd|id
dd}|i|iiddd|i|iiddd|i|iid	dd
|i|iiddd|i|iiddd|i|iiddd|i|iiddddS(Nswww.example.com/foo?hello=worlds"gopher.example.com/foo?hello=worldsgopher://gopher.example.comshttp://www.example.comRQswww.example.com:80R swww.example.com/fooRshello=worldR%Rs"www.example.com/secure?hello=worldshttps://www.example.com/secureswww.example.com:443swww.example.com/secureRs/secureR/swww.example.comR3RY(RRRRRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt
test_blankys6		cCs|iddddt}|i}|i}|i}|i||j	|i}|i}|i||j|i||jdS(NR5Rs&multipart/form-data; boundary=boundaryR$(Rt_cgi_escaping_bodyR1R$R'(R
Rtf0tpost1tf1tpost2tf2((s1/home/chrism/projects/webob/tests/test_request.pyttest_post_does_not_reparses						cssdfd}iddddd}|i|}i|idi|idddS(	NcSs|dg|digS(Ns200 OKs
wsgi.input(R3(tenvtsr((s1/home/chrism/projects/webob/tests/test_request.pytapps
csGi|}|ii}|i}||id<|||S(Nsx-data(RR(R3tget_responseR(RLRMRRFtresp(R
RN(s1/home/chrism/projects/webob/tests/test_request.pytmws

R5RRR)Rsx-data(RRORR)R(R
RQRRP((R
RNs1/home/chrism/projects/webob/tests/test_request.pyttest_middleware_bodys	cCsk|iddddd}g}tdD]}||iidq,~}|i|dd	d
gdS(NR5RRR)RiiRWRXRm(RRR(R3R(R
RRtR#tlst((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_noseeks3cCsp|iddddt}|it|iidg|ii|it|iidgdS(NR5Rs&multipart/form-data; boundary=boundaryR$s%20%22"(RRERRR$RR(R3(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_cgi_escaping_fixs	"
cCs5|iddd}|i|idd|_dS(NR5Rs	text/html(RRRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_content_type_nonescCsA|iddd}td|_|i|iiddS(NR5RR$R)(RRR(RRER3(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_body_file_seekablescCs|id}|i|idd|i|idd|i|idd|i|idd	|i|id
d|i|idd
|i|idd|i|idd|it|iddot|idd|it|iddpt|idd|i|idt|i|idt|i|idt|i|idd|i|idd3|it|id |i|idd!|_d"|_|it|id |i|id"|i|id!|i|i	d|i|i
dd#|_
|i|id|i|id|i|i
dj|i|idj|i|id|i|id$|i|id%|i|id&|i|id'|i|id(|i|id)|i|id|i|id*d+|i|id,|i|id,|i|i
d(|i|idd-|id.<|it|iid4d5d6g|i|id2d-dS(7Ns
/article?id=1RQslocalhost:80R s/articleRsid=1R%RRR0R/R%R3RRRsHTTP/1.0swsgi.errorsRtflushs
wsgi.inputtnextt__next__swsgi.multiprocessswsgi.multithreads
wsgi.run_onceswsgi.url_schemeRPswsgi.versioniiR3RRs/blogshttp://localhostshttp://localhost/blogshttp://localhost/blog/articles"http://localhost/blog/article?id=1s
/blog/articles/blog/article?id=1tarchiveshttp://localhost/blog/archivetarticlesapplication/x-www-urlencodedsContent-TypesContent-LengthRRR(ii(sContent-LengthR(sContent-Typesapplication/x-www-urlencoded(sHostslocalhost:80(RRRR'RRDR(R)RR RR!RR)RR,RR_RgRkRrRmRoRRuRRzRRsR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyttest_request_initsj			

cCsddkl}ddkl}ddkl}ddkl}|id}|dddgh}|i|i||i|idd	|i|iiddd	g|it	|ii
dddg|it|i
||it	|i
i
gd|_d
|_|i|i
|ddg|i|i
d
d|it|i||it	|ii
dddddg|i|id
d|i|iid
ddgdS(Ni(R(tNestedMultiDict(R(tGetDicts/test?check=a&check=b&name=BobtcheckRWRXRtBobR$sname=Joe&email=joe@example.comtJoetemailsjoe@example.com(scheckRW(scheckRX(snameRa(scheckRW(scheckRX(snameRa(snameRb(semailsjoe@example.com(scheckRW(scheckRX(snameRa(snameRb(semailsjoe@example.com(RRR^RR_RRRtgetallRRR'RR$RR)R(R
RR^RR_RR((s1/home/chrism/projects/webob/tests/test_request.pyt test_request_query_and_POST_varss<"		

cCsddkl}ddkl}ddkl}ddkl}ddkl}ddkl	}ddk
l}dd	k
l}|i
d
}	d|	_d|	_tt|	i|	id
<d|	id<|d;d<d=gh}
|i|	i|
|i|	i|d>d?d@dAg|it|	iidBdCdDgd|	_|it|	iidEdFdGgd|	id<|it|	iti|it|	iidHgd|	_|i|	ihd d6|id!|	i jd"|	_ |it|	i ||id!|	i j|i!t"|	i i#d!g|i|	i i$d!d#gd#d$|	_%|i|	i%i$d%gd%d&}|i||	i&j||	_&|it|	i&||i||	i&jd'|}||	_&|	id(|jpt'|i||	i&j|d)d*d*d+d,d-||	_(|i|	id.d/|d0d*d*d+d,d-|}
|i|	i(|i|	i(|
j|i|	i)|i|d1d2d3|d0d*d*d+d,|	i)jd4|	_)|i|d1d5|	i)j|i|d1d4|	i)j|d1d4}|i||	i)jd6|	_*|it|	i*||it+|	i*dI|	i*i,d8d9}|it+|dJ|i||	i-j||	_-|i||	i-jd:|	_-|i||	i-jdS(KNi(R(tResponse(R(t
MIMEAccept(tRange(tETagMatcher(R(R_s/test?check=a&check=b&name=BobRs#var1=value1&var2=value2&rep=1&rep=2R#s!application/x-www-form-urlencodedRR`RWRXRRaRRtvar2tvalue2trepRhRotutf8s
test=valueRRRs	text/htmls*text/html;q=0.5, application/xhtml+xml;q=1sapplication/xhtml+xmls	es, pt-BRtessopaque-tokensW/"%s"s
if-none-matchiiiiRsIf-Modified-SincesSun, 01 Jan 2006 12:00:00 GMTitetags	some-etagt
last_modifiedsopaque-etags
other-etagsbytes=0-100ietlengthisother-token(scheckRW(scheckRX(snamesBob(svar1svalue1(RjRk(srepRh(srepRo(scheckRW(scheckRX(snamesBob(scheckRW(scheckRX(snamesBob(stestsvalue(iie(iiei(.RtwebobRfRtwebob.acceptparseRgtwebob.byterangeRht
webob.etagRiRRR_RRR)RR&RRRR$RRRRR'RRftcollectionstMutableMappingRRRRtfirst_matchRtaccept_languageRR2RRRttuplet
content_rangetif_match(R
RRfRRgRhRiRR_RRtserver_tokent
weak_tokentserver_modifiedRtcr((s1/home/chrism/projects/webob/tests/test_request.pyttest_request_put;s		

	
"						
	!
				c
Csddkl}ddkl}|id}d|_d|_tt|i|id<d|id	<|dddgh}|i	|i
||i	|i|ddddgdS(Ni(R(R_s/test?check=a&check=b&name=BobRs#var1=value1&var2=value2&rep=1&rep=2R#s!application/x-www-form-urlencodedRR`RWRXRRaRRRjRkRlRhRo(scheckRW(scheckRX(snamesBob(svar1svalue1(svar2svalue2(srepRh(srepRo(RRR_RRR)RR&RRRR$(R
RR_RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_request_patchs 		
cCs|id}d}|i|i|dd
gdgf|i|}ddkl}|it|||i|iddd	k	l
}|it|i||it|ii
dg|i|iddS(NR5cSs|ddgdgS(Ns200 OKsContent-types
text/plainsHi!(sContent-types
text/plain((RR((s1/home/chrism/projects/webob/tests/test_request.pytwsgi_appss200 OKsContent-types
text/plainsHi!i(Rf(tResponseHeaders(sContent-types
text/plain(sContent-types
text/plain(RRRROtwebob.responseRfR'RRt
webob.headersRRRRR)(R
RRRRfR((s1/home/chrism/projects/webob/tests/test_request.pyttest_call_WSGI_apps		

cCs|id}d}|i|dt}ddkl}|it|||i|idddk	l
}|it|i||it|ii
dg|i|id
dS(NR5cSs|ddgdgS(Ns200 OKsContent-types
text/plainsHi!(sContent-types
text/plain((RR((s1/home/chrism/projects/webob/tests/test_request.pyRstcatch_exc_infoi(Rfs200 OK(RsContent-types
text/plainsHi!(sContent-types
text/plain(RROR,RRfR'RRRRRRRRR)(R
RRRRfR((s1/home/chrism/projects/webob/tests/test_request.pyt%test_get_response_catch_exc_info_trues	
c	Cs|i}|i|}|i|i|it|i}t|i}|it|iddt|iddd|jo|d=nd|jo|d=n|i|||i}|i}|i||dS(NsContent-LengthR(	RR8RRrtdictRtintRR)(	R
RR	RRtheaders1theaders2treq_bodyt	req2_body((s1/home/chrism/projects/webob/tests/test_request.pyRs

		(;RRRRRRRRRRRRRRRRRRRRRRRRRRR
RR
RRRRRR$R&R'R+R,R-R6R7R;RARCRDRKRRRTRURVRWR]ReRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyR<	sr															*							
																				
	&		 	$	!									C	&	f			tFakeCGIBodyTestscBsPeZdZdZdZdZdZdZdZdZ	RS(c
Csddkl}ddkl}l}ddkl}d}ddkl}d}||}|i	di
}	|	id	||	id
d|	idt|||d
|	}
|i
|
}|i|di||||}|i|i|dS(Ni(R(RtFakeCGIBody(Rs$multipart/form-data; boundary=foobar(Rs--foobar
Content-Disposition: form-data; name="bananas"; filename="bananas.txt"
Content-type: text/plain; charset="utf-7"

these are the contents of the file 'bananas.txt'

--foobar--R5RR%R$R#Rtbananas(RRR	RRRRR9RRRRR&tfrom_fieldstorageRRR3(
R
RRRRtmultipart_typeRR)tmultipart_bodyRtfstvarst	fake_body((s1/home/chrism/projects/webob/tests/test_request.pyt(test_encode_multipart_value_type_optionss cCs*ddkl}|it|hddS(Ni(Rsmultipart/form-data(R	RRR(R
R((s1/home/chrism/projects/webob/tests/test_request.pyt!test_encode_multipart_no_boundary
scCshddkl}|hdd6d}|idddk}|i|iddt|ddS(	Ni(RRs$multipart/form-data; boundary=foobaris\b0x[0-9a-f]+\bs<whereitsat>s=<FakeCGIBody at <whereitsat> viewing {'bananas': 'ba...nas'}>(R	RR3RRtsubR(R
RR)R((s1/home/chrism/projects/webob/tests/test_request.pyt	test_repr
s
	
cCs@ddkl}|hdd6d}|i|iddS(Ni(RRs$multipart/form-data; boundary=foobar(R	RRtfilenoR(R
RR)((s1/home/chrism/projects/webob/tests/test_request.pyttest_fileno
s
	cCsOddkl}|hdd6d}|it|ddddd	gdS(
Ni(RRs$multipart/form-data; boundary=foobars
--foobar
s0Content-Disposition: form-data; name="bananas"
s
s	bananas
s
--foobar--(R	RRR(R
RR)((s1/home/chrism/projects/webob/tests/test_request.pyt	test_iter
s
	cCsddkl}|hdd6d}|i|id|i|id|i|id|i|id|i|id	dS(
Ni(RRs$multipart/form-data; boundary=foobars
--foobar
s0Content-Disposition: form-data; name="bananas"
s
s	bananas
s
--foobar--(R	RRtreadline(R
RR)((s1/home/chrism/projects/webob/tests/test_request.pyt
test_readline"
s
		cCs=ddkl}|hdd6d}|it|idS(Ni(RRsapplication/jibberjabber(R	RRR2R3(R
RR)((s1/home/chrism/projects/webob/tests/test_request.pyttest_read_bad_content_type/
scCs@ddkl}|hdd6d}|i|iddS(Ni(RRs!application/x-www-form-urlencodedsbananas=bananas(R	RRR3(R
RR)((s1/home/chrism/projects/webob/tests/test_request.pyttest_read_urlencoded4
s
	(
RRRRRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRs						
	t"Test_cgi_FieldStorage__repr__patchcBs#eZdZdZdZRS(cCsddkl}||S(Ni(t_cgi_FieldStorage__repr__patch(R	R(R
tfakeR((s1/home/chrism/projects/webob/tests/test_request.pyt_callFUT<
scCsBdtfdY}|}|i|}|i|ddS(NtFakecBs eZdZdZdZdZRS(RRRR(RRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRA
ss FieldStorage('name', 'filename')(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_with_file@
s	cCsBdtfdY}|}|i|}|i|ddS(NRcBs eZdZdZdZdZRS(RRRN(RRRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRK
ss)FieldStorage('name', 'filename', 'value')(RRR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyttest_without_fileJ
s	(RRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyR;
s		
tTestLimitedLengthFilecBseZdZdZRS(cCsddkl}|||S(Ni(tLimitedLengthFile(R	R(R
RtmaxlenR((s1/home/chrism/projects/webob/tests/test_request.pyRV
scCsKdtfdY}|}|i|d}|i|iddS(Nt	DummyFilecBseZdZRS(cSsdS(Ni((R
((s1/home/chrism/projects/webob/tests/test_request.pyR\
s(RRR(((s1/home/chrism/projects/webob/tests/test_request.pyR[
sii(RRRR(R
Rt	dummyfileRh((s1/home/chrism/projects/webob/tests/test_request.pyRZ
s	(RRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRU
s	tTest_environ_from_urlcBs,eZdZdZdZdZRS(cOsddkl}|||S(Ni(tenviron_from_url(R	R(R
RR
R((s1/home/chrism/projects/webob/tests/test_request.pyRd
scCsC|it|id|it|id|id}|i|iddd|i|iddd|i|iddd	|i|id
dd|i|iddd
|i|iddd|i|iddd|id}|i|iddd|i|iddd|i|iddd	|i|id
dd|i|iddd
|i|iddd|i|idddddkl}||d|id|j|id|j||hdd6|i|iddd|i|iddd|i|iddd	|i|id
dd|i|iddd
|i|iddd|i|iddd|i|iddd|i|iddd|i|di	ddS( Ns&http://www.example.com/foo?bar=baz#quxsgopher://gopher.example.coms"http://www.example.com/foo?bar=bazRQswww.example.com:80R s/fooRsbar=bazR%RRR0R/swww.example.comR3RRs#https://www.example.com/foo?bar=bazswww.example.com:443RYi(tenviron_add_POSTRR#R)R*R$t11s!application/x-www-form-urlencodeds
wsgi.inputshello=world(
RRRRRRR	RR'R3(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_environ_from_urlh
sH
cCsxddkl}|id}|i|dd||}tdd}|i|i||i|i|dS(Ni(Rs
/%E6%B5%81R s/流sutf-8(R	RRRRR!R:(R
RRLRR((s1/home/chrism/projects/webob/tests/test_request.pyt)test_environ_from_url_highorder_path_info
scCsddkl}ddk}|idd|iddtddd
d}|id|iid
jt	||id|iid
jt	|dS(Ni(Rsapplication/x-foos.fooR5R$tfile1sfoo.footxxxtfile2sbar.mp3s
audio/mpegtascii(sfoo.fooR(sbar.mp3R(
R	Rt	mimetypestadd_typeRRR'R)RR(R
RRR((s1/home/chrism/projects/webob/tests/test_request.pyt#test_fileupload_mime_type_detection
s
(RRRRRR(((s1/home/chrism/projects/webob/tests/test_request.pyRc
s		*		tTestRequestMultipartcBseZdZRS(cCsUddkl}|it}|i|ididtddiddS(Ni(RttitleRmsこんにちはsutf-8(R	RR
t_test_req_multipart_charsetRR$RR(R
RR((s1/home/chrism/projects/webob/tests/test_request.pyttest_multipart_with_charset
s(RRR(((s1/home/chrism/projects/webob/tests/test_request.pyR
scCsSddkl}d}dg}|||||}d|_g}dd|id	t|iid
dt|id|ii	d
dgd|i
d|id|id|i
d|id|idd|i|i|i|ifd|id|ifd|id|id|id|igD]}|t|q9~S(Ni(Rs200 OKsContent-types
text/plaintbobs
Hello world!
s
The get is %rs and Val is %s
RsThe languages are: %s
sThe accepttypes is: %s
sapplication/xmls	text/htmlspost is %r
s
params is %r
scookies is %r
s	body: %r
smethod: %s
sremote_user: %r
R(s9host_url: %r; application_url: %r; path_url: %r; url: %r
surlvars: %r
surlargs: %r
sis_xhr: %r
sif_modified_since: %r
suser_agent: %r
sif_none_match: %r
(sContent-types
text/plain(R	RR)RRRRRyRRR$RRfR)RRR_RgRkRrRKR\RRt
user_agentRR(RRRRtresponse_headersRRtRu((s1/home/chrism/projects/webob/tests/test_request.pyR
s<	
	











sH--boundary
Content-Disposition: form-data; name="%20%22""


--boundary--cCs(di|iiddidS(Ns
s
R0s
(RRrRRq(ts((s1/home/chrism/projects/webob/tests/test_request.pyt	_norm_req
ss<
POST /webob/ HTTP/1.0
Accept: */*
Cache-Control: max-age=0
Content-Type: multipart/form-data; boundary=----------------------------deb95b63e42a
Host: pythonpaste.org
User-Agent: UserAgent/1.0 (identifier-version) library/7.0 otherlibrary/0.8

------------------------------deb95b63e42a
Content-Disposition: form-data; name="foo"

foo
------------------------------deb95b63e42a
Content-Disposition: form-data; name="bar"; filename="bar.txt"
Content-type: application/octet-stream

these are the contents of the file 'bar.txt'

------------------------------deb95b63e42a--
s$
POST / HTTP/1.0
Content-Length: 0

s=
POST /upload/ HTTP/1.1
Host: foo.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.8,ja;q=0.6
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: multipart/form-data; boundary=000e0ce0b196b4ee6804c6c8af94
Content-Length: 926

--000e0ce0b196b4ee6804c6c8af94
Content-Type: text/plain; charset=ISO-2022-JP
Content-Disposition: form-data; name=title
Content-Transfer-Encoding: 7bit

$B$3$s$K$A$O(B
--000e0ce0b196b4ee6804c6c8af94
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: form-data; name=submit

Submit
--000e0ce0b196b4ee6804c6c8af94
Content-Type: message/external-body; charset=ISO-8859-1; blob-key=AMIfv94TgpPBtKTL3a0U9Qh1QCX7OWSsmdkIoD2ws45kP9zQAGTOfGNz4U18j7CVXzODk85WtiL5gZUFklTGY3y4G0Jz3KTPtJBOFDvQHQew7YUymRIpgUXgENS_fSEmInAIQdpSc2E78MRBVEZY392uhph3r-In96t8Z58WIRc-Yikx1bnarWo
Content-Disposition: form-data; name=file; filename="photo.jpg"

Content-Type: image/jpeg
Content-Length: 38491
X-AppEngine-Upload-Creation: 2012-08-08 15:32:29.035959
Content-MD5: ZjRmNGRhYmNhZTkyNzcyOWQ5ZGUwNDgzOWFkNDAxN2Y=
Content-Disposition: form-data; name=file; filename="photo.jpg"


--000e0ce0b196b4ee6804c6c8af94--s
RcBseZdZddZRS(cCs||_d|_dS(Ni(RFtpos(R
RF((s1/home/chrism/projects/webob/tests/test_request.pyR0s	icCs|djo'|i|i}t|i|_|S|i|t|ijpt|i|i|i|!}|i|7_|SdS(Ni(RFRR&R2(R
tsizett((s1/home/chrism/projects/webob/tests/test_request.pyR3 s
$(RRR0R3(((s1/home/chrism/projects/webob/tests/test_request.pyRs	RcBseZddZRS(icCstddS(Ns
Invalid seek!(R(R
Rtrel((s1/home/chrism/projects/webob/tests/test_request.pyRC,s(RRRC(((s1/home/chrism/projects/webob/tests/test_request.pyR+s("RvRtunittestRR9RRtwebob.compatRRRRRtTestCaseRRRRRRRRRRRRRERR	R>RRRR(((s1/home/chrism/projects/webob/tests/test_request.pyt<module>sJ( UE	%	#