File: test_transcode.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 (27 lines) | stat: -rw-r--r-- 3,455 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

#Nc@sddklZlZddklZddklZlZddkl	Z	dZ
dZdZdZ
d	Zd
ZdZdZd
ZdS(i(tRequestt
Transcoder(tResponse(ttext_tnative_(teq_sK--BOUNDARY
Content-Disposition: form-data; name="a"

...
--BOUNDARY--s\--BOUNDARY
Content-Disposition: form-data; name="a"; filename="file"

...
--BOUNDARY--s[--BOUNDARY
Content-Disposition: form-data; name="a"; filename="..."

foo
--BOUNDARY--csddid}fd}|t}t|i||t}t|id|id|t}t|id|dfdS(NcSswt|}|i}|i|i}t|do&ttd|i|if}n
t|}|||S(Ntfilenames%s
%r(	RtdecodetPOSTtquery_stringthasattrRRRtvalue(tenvtsrtreqtvtr((s3/home/chrism/projects/webob/tests/test_transcode.pyttapps&s...tcp1251cs/tidd|}d|id<|iS(Ns/?aRs<multipart/form-data; charset=windows-1251; boundary=BOUNDARYtCONTENT_TYPE(Rtblanktenvirontget_response(tpostR(R(s3/home/chrism/projects/webob/tests/test_transcode.pyttest s
sfile
%rs%s
%rtfoo(Rtt1Rttexttt2tencodett3(RRR((Rs3/home/chrism/projects/webob/tests/test_transcode.pyttest_transcodes	
cCs2tid}|id}t|iddS(Ns/?%EF%F0%E8=%E2%E5%F2Rs%%D0%BF%D1%80%D0%B8=%D0%B2%D0%B5%D1%82(RRRRR	(Rtreq2((s3/home/chrism/projects/webob/tests/test_transcode.pyttest_transcode_query7scCsGtiddd}d|_|id}tt|iddS(Ns/?aRs%EF%F0%E8=%E2%E5%F2s!application/x-www-form-urlencodedRs%%D0%BF%D1%80%D0%B8=%D0%B2%D0%B5%D1%82(RRt_content_type_rawRRRtbody(RR ((s3/home/chrism/projects/webob/tests/test_transcode.pyttest_transcode_non_multipart<s	cCsGtiddd}d|_|id}tt|iddS(Ns/?aRs%EF%F0%E8=%E2%E5%F2sapplication/x-fooR(RRR"RRRR#(RR ((s3/home/chrism/projects/webob/tests/test_transcode.pyttest_transcode_non_formBs	cCs-tid}|i|jptdS(Ns/(RRRtAssertionError(R((s3/home/chrism/projects/webob/tests/test_transcode.pyttest_transcode_noopHscCs&td}t|idddS(Ntasciita(RRttranscode_query(tt((s3/home/chrism/projects/webob/tests/test_transcode.pyR!LsN(t
webob.requestRRtwebob.responseRtwebob.compatRRt
nose.toolsRRRRRR!R$R%R'(((s3/home/chrism/projects/webob/tests/test_transcode.pyt<module>s	&