Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 125) 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_static.py51 assert self.get()['body'] == 'readme', 'index'
57 assert self.get()['status'] == 404, 'index empty'
69 resp = self.get(url='/index.html/')
99 etag = self.get(url='/')['headers']['ETag']
100 etag_2 = self.get(url='/README')['headers']['ETag']
111 resp = self.get(url='/dir')
131 self.get(url='/ di r /fi le')['body'] == 'blah'
138 self.get(url='/ di r %2Ffi le')['body'] == 'blah'
198 assert self.get(url='/fifo')['status'] == 404, 'fifo'
219 sock = self.get(no_recv=True)
[all …]
H A Dtest_php_application.py24 resp = self.get()
161 resp = self.get()
169 resp = self.get()
178 self.get(
189 self.get(
200 self.get(
213 resp = self.get()
276 resp = self.get(
428 resp = self.get(
440 resp = self.get(
[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_status.py13 Status.get('/connections') == {
56 assert self.get()['status'] == 200
84 sock = self.get(port=7081, no_recv=True)
110 assert self.get()['status'] == 200
118 self.get(sock=sock)
123 (_, sock) = self.get(
135 self.get(sock=sock)
161 assert self.get()['status'] == 200
169 (_, sock) = self.get(
202 self.get(read_timeout=1)
[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'
170 resp = self.get(
185 self.get(
222 headers = self.get()['headers']
283 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.py38 assert self.get(url='/dir/file')['status'] == 200, 'default chroot'
45 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
46 assert self.get(url='/index.html')['status'] == 403, 'chroot 403 2'
47 assert self.get(url='/file')['status'] == 403, 'chroot 403'
53 assert self.get(url='/dir/file')['status'] == 200, 'share array'
63 assert self.get()['status'] != 200, 'share array bad'
75 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
95 assert self.get(url=self.test_path)['status'] == 200, 'relative'
130 assert self.get(url='/dir/file')['status'] == 200, 'slash end'
136 assert self.get(url='/dir/file')['status'] == 200, 'no slash end'
[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.py108 resp = self.get(url='/?')
116 resp = self.get()
160 assert self.get()['status'] == 200, 'init'
271 resp = self.get(sock=sock)
287 assert self.get()['status'] == 200
307 self.get(
331 self.get(headers=headers_delay_1)
348 self.get(no_recv=True)
360 sock = self.get(
393 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()
263 self.get()
272 self.get(
422 self.get()
461 self.get()
468 self.get()
477 self.get()
510 resp = self.get(
535 self.get(
573 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_njs.py33 assert self.get()['status'] == 200, 'string'
36 assert self.get()['status'] == 200, 'string 2'
39 assert self.get()['status'] == 200, 'escape'
42 assert self.get()['status'] == 200, 'multiline'
47 assert self.get()['status'] == 200
56 assert self.get()['status'] == 200, 'host'
59 assert self.get()['status'] == 200, 'remoteAddr'
62 assert self.get()['status'] == 200, 'headers'
66 self.get(
73 assert self.get(url='/?foo=localhost')['status'] == 200, 'args'
[all …]
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()
366 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_variables.py84 assert self.get()['status'] == 200
115 assert self.get(url=uri)['status'] == 200
148 assert self.get()['status'] == 200
192 assert self.get()['status'] == 418
203 self.get(
226 self.get(
246 assert self.get(url=uri)['status'] == 200
265 self.get(
279 assert self.get(url=url)['status'] == 200
340 self.get(
[all …]
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'
113 resp = self.get(
134 assert self.get()['headers']['X-Arg-0'] == self.conf_get(
150 assert self.get()['body'] == arg1 + ',' + arg2 + ',' + arg3, 'arguments'
159 assert self.get()['body'] == '0,a,$,', 'arguments'
163 assert self.get()['body'] == '-1,b,%', 'arguments change'
167 assert self.get()['headers']['Content-Length'] == '0', 'arguments empty'
/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