Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 117) sorted by relevance

12345

/unit/test/
H A Dtest_routing.py45 self.get(
892 self.get(
903 self.get(
917 self.get(
927 self.get(
937 self.get(
952 self.get(
962 self.get(
972 self.get(
983 self.get(
[all …]
H A Dtest_variables.py29 assert self.get()['status'] == 201, 'method GET'
76 assert self.get()['status'] == 207, 'many 4'
83 assert self.get()['status'] == 201
86 assert self.get(url='/3')['status'] == 203
92 assert self.get(url='/4*')['status'] == 204
95 assert self.get()['status'] == 205
109 assert self.get(url='/1')['status'] == 200
110 assert self.get(url='/2')['status'] == 404
119 assert self.get(url='/1')['status'] == 404
122 assert self.get(url='/2')['status'] == 404
[all …]
H A Dtest_static.py97 assert self.get()['body'] == 'readme', 'index'
103 assert self.get()['status'] == 404, 'index empty'
115 resp = self.get(url='/index.html/')
145 etag = self.get(url='/')['headers']['ETag']
146 etag_2 = self.get(url='/README')['headers']['ETag']
157 resp = self.get(url='/dir')
177 self.get(url='/ di r /fi le')['body'] == 'blah'
184 self.get(url='/ di r %2Ffi le')['body'] == 'blah'
244 assert self.get(url='/fifo')['status'] == 404, 'fifo'
265 _, sock = self.get(url='/', start=True, no_recv=True)
[all …]
H A Dtest_java_application.py48 headers = self.get(
131 resp = self.get(
154 resp = self.get(
168 resp = self.get(
180 resp = self.get(
193 resp = self.get(
204 resp = self.get(
217 resp = self.get()
220 resp = self.get(
559 resp = self.get(
[all …]
H A Dtest_php_application.py23 resp = self.get()
160 resp = self.get()
168 resp = self.get()
177 self.get(
188 self.get(
199 self.get(
212 resp = self.get()
284 resp = self.get(
436 resp = self.get(
448 resp = self.get(
[all …]
H A Dtest_node_application.py12 resp = self.get()
34 assert self.get()['status'] == 200, 'seq'
35 assert self.get()['status'] == 200, 'seq 2'
86 resp = self.get(url='/?var1=val1&var2=&var3')
110 resp = self.get()
120 assert self.get()['status'] == 200, 'init'
179 resp = self.get(
194 self.get(
231 headers = self.get()['headers']
292 self.get(
[all …]
H A Dtest_http_header.py11 resp = self.get(
27 resp = self.get(
43 resp = self.get(
59 resp = self.get(
75 resp = self.get(
91 resp = self.get(
157 self.get(
171 self.get(
185 self.get(
199 self.get(
[all …]
H A Dtest_static_chroot.py39 assert self.get(url='/dir/file')['status'] == 200, 'default chroot'
50 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
51 assert self.get(url='/index.html')['status'] == 403, 'chroot 403 2'
52 assert self.get(url='/file')['status'] == 403, 'chroot 403'
62 assert self.get(url='/dir/file')['status'] == 200, 'share array'
76 assert self.get()['status'] != 200, 'share array bad'
92 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
101 self.get(url='/dir/file')['status'] == 200
110 self.get(url=self.test_path)['status'] == 200
136 assert self.get(url=self.test_path)['status'] == 200, 'relative'
[all …]
H A Dtest_static_variables.py33 assert self.get(url='/index.html')['status'] == 200
34 assert self.get(url='/d$r/file')['status'] == 200
37 assert self.get(url=temp_dir + '/assets/index.html')['status'] == 200
40 assert self.get(url='/index.html')['status'] == 200
47 assert self.get(url='/dir/file')['status'] == 200
49 assert self.get(url='/blah')['status'] == 404
59 assert self.get(url='/dir/file')['status'] == 200
61 assert self.get(url='/dir/blah')['status'] == 201
65 assert self.get(url=temp_dir)['status'] == 200
69 assert self.get(url='/assets')['status'] == 200
[all …]
H A Dtest_return.py35 resp = self.get()
52 resp = self.get(http_10=True)
63 resp = self.get()
69 resp = self.get()
75 resp = self.get()
81 resp = self.get()
147 assert self.get()['headers']['Location'] == 'blah'
152 assert 'Location' not in self.get()['headers']
157 assert self.get()['headers']['Location'] == 'blah'
162 assert self.get()['headers']['Location'] == 'blah'
[all …]
H A Dtest_asgi_application.py66 resp = self.get(url='/?var1=val1&var2=val2')
98 resp = self.get(url='/?')
106 resp = self.get()
298 resp = self.get(sock=sock)
315 assert self.get()['status'] == 200
335 self.get(
359 self.get(headers=headers_delay_1)
376 self.get(no_recv=True)
388 (_, sock) = self.get(
422 resp = self.get(
[all …]
H A Dtest_static_types.py33 resp = self.get(url=http_url)
53 assert self.get(url='/file.xml')['status'] == 403, 'no mtype'
60 assert self.get(url='/file.mp4')['status'] == 403, 'app * mtype mp4'
65 assert self.get(url='/file.xml')['status'] == 403, 'video * mtype xml'
82 assert self.get(url='/file.mp4')['status'] == 403, 'negation sort mp4'
93 assert self.get(url='/file.php')['status'] == 403, 'regex fail'
103 self.get(url='/file.xml')['status'] == 403
109 assert self.get(url='/file.mp4')['status'] == 200, 'mixed case'
111 self.get(url='/file.xml')['status'] == 403
119 self.get(url='/file.xml')['status'] == 403
[all …]
H A Dtest_python_application.py108 resp = self.get()
299 self.get()
308 self.get(
458 self.get()
497 self.get()
504 self.get()
513 self.get()
546 resp = self.get(
571 self.get(
609 resp = self.get(
[all …]
H A Dtest_python_environment.py34 self.get(
47 self.get(
63 self.get(
76 self.get(
95 self.get(
108 self.get(
121 home_default = self.get(
134 self.get(
147 self.get(
H A Dtest_static_share.py31 assert self.get(url='/dir/file')['body'] == '1'
32 assert self.get(url='/dir2/file2')['body'] == '2'
36 assert self.get(url='/file')['body'] == '1'
37 assert self.get(url='/file2')['status'] == 404
48 assert self.get(url='/file')['body'] == '1'
49 assert self.get(url='/file2')['body'] == '2'
60 assert self.get(url='/file')['status'] == 404
61 assert self.get(url='/file2')['body'] == '2'
68 assert self.get()['status'] == 201
H A Dtest_static_symlink.py29 assert self.get(url='/dir')['status'] == 301, 'dir'
30 assert self.get(url='/dir/file')['status'] == 200, 'file'
31 assert self.get(url='/link')['status'] == 301, 'symlink dir'
32 assert self.get(url='/link/file')['status'] == 200, 'symlink file'
39 assert self.get(url='/link/file')['status'] == 403, 'symlink disabled'
46 assert self.get(url='/link/file')['status'] == 200, 'symlink enabled'
73 assert self.get(url='/link/file')['status'] == 200, 'block enabled'
83 assert self.get(url='/dir/dir/link')['status'] == 200, 'default chroot'
93 assert self.get(url='/dir/dir/link')['status'] == 404, 'chroot'
H A Dtest_perl_application.py61 resp = self.get(url='/?var1=val1&var2=val2')
70 resp = self.get(url='/?')
78 resp = self.get()
88 self.get()['headers']['Server-Port'] == '7080'
94 assert self.get()['body'] == '', 'read empty'
143 assert self.get()['headers']['Set-Cookie'] == [
156 assert self.get()['body'] == '', 'body empty'
192 assert self.get()['status'] == 200, 'init'
239 resp = self.get()
247 resp = self.get()
[all …]
H A Dtest_static_fallback.py42 assert self.get()['status'] == 404, 'bad path no fallback'
46 resp = self.get()
54 resp = self.get()
58 resp = self.get(url='/403/')
66 assert self.get(url='/dir')['status'] == 301, 'fallback status 301'
79 resp = self.get()
91 resp = self.get()
100 self.get(url='/dir')['status'] == 301
120 resp = self.get()
136 self.get(no_recv=True)
[all …]
H A Dtest_php_targets.py46 assert self.get(url='/1')['body'] == '1'
47 assert self.get(url='/2')['body'] == '2'
48 assert self.get(url='/blah')['status'] == 503 # TODO 404
49 assert self.get(url='/')['body'] == 'index'
54 assert self.get(url='/')['body'] == '1'
59 assert self.get(url='/')['body'] == 'index'
81 assert self.get()['status'] == 200
H A Dtest_ruby_application.py64 resp = self.get(url='/?var1=val1&var2=val2')
73 resp = self.get(url='/?')
81 resp = self.get()
176 assert self.get()['status'] == 200
185 assert self.get()['status'] == 200
194 assert self.get()['status'] == 200
207 assert self.get()['status'] == 200
215 assert self.get()['status'] == 200
258 resp = self.get()
375 resp = self.get()
[all …]
H A Dtest_asgi_targets.py57 assert self.get(url='/1')['status'] == 200
58 assert self.get(url='/2')['status'] == 201
68 assert self.get(url='/1')['status'] == 200
69 assert self.get(url='/2')['status'] == 201
79 assert self.get(url='/1')['status'] == 200
80 assert self.get(url='/2')['status'] == 201
92 assert self.get(url='/1')['status'] != 200
H A Dtest_go_application.py57 resp = self.get(url='/?var1=val1&var2=&var3')
81 resp = self.get()
91 assert self.get()['status'] == 200, 'init'
123 resp = self.get(
144 assert self.get()['headers']['X-Arg-0'] == self.conf_get(
160 assert self.get()['body'] == arg1 + ',' + arg2 + ',' + arg3, 'arguments'
169 assert self.get()['body'] == '0,a,$,', 'arguments'
173 assert self.get()['body'] == '-1,b,%', 'arguments change'
177 assert self.get()['headers']['Content-Length'] == '0', 'arguments empty'
H A Dtest_python_procman.py42 self.get()
51 self.get()
59 self.get()
79 self.get()
83 self.get()
98 self.get()
103 self.get()
111 self.get()
124 self.get()
134 self.get()
[all …]
H A Dtest_access_log.py24 assert self.get()['status'] == 200, 'init'
97 self.get(sock_type='ipv6')
115 self.get(sock_type='unix', addr=addr)
127 self.get(
143 self.get(
161 self.get(http_10=True)
223 self.get(headers={'Connection': 'close'})
233 self.get(url='/?blah&var=val')
247 self.get(url='/delete')
254 self.get()
[all …]
/unit/test/python/variables/
H A Dwsgi.py3 content_length = int(environ.get('CONTENT_LENGTH', 0))
9 ('Content-Type', environ.get('CONTENT_TYPE')),
11 ('Request-Method', environ.get('REQUEST_METHOD')),
12 ('Request-Uri', environ.get('REQUEST_URI')),
13 ('Http-Host', environ.get('HTTP_HOST')),
14 ('Server-Protocol', environ.get('SERVER_PROTOCOL')),
15 ('Server-Software', environ.get('SERVER_SOFTWARE')),
16 ('Custom-Header', environ.get('HTTP_CUSTOM_HEADER')),

12345