Lines Matching refs:get

79         assert self.get(url='/')['body'] == '0123456789', 'before 1.26.0'
83 assert self.get(url='/')['body'] == '0123456789', 'after 1.26.0'
87 assert self.get(url='/')['body'] == '0123456789', 'before 1.26.0 2'
97 assert self.get()['body'] == 'readme', 'index'
100 assert self.get()['body'] == '0123456789', 'delete index'
103 assert self.get()['status'] == 404, 'index empty'
106 assert self.get(url='/index.html')['body'] == '0123456789', 'index'
107 assert self.get(url='/')['body'] == '0123456789', 'index 2'
108 assert self.get(url='//')['body'] == '0123456789', 'index 3'
109 assert self.get(url='/.')['body'] == '0123456789', 'index 4'
110 assert self.get(url='/./')['body'] == '0123456789', 'index 5'
111 assert self.get(url='/?blah')['body'] == '0123456789', 'index vars'
112 assert self.get(url='/#blah')['body'] == '0123456789', 'index anchor'
113 assert self.get(url='/dir/')['status'] == 404, 'index not found'
115 resp = self.get(url='/index.html/')
140 len(self.get(url='/large', read_buffer_size=1024 * 1024)['body'])
145 etag = self.get(url='/')['headers']['ETag']
146 etag_2 = self.get(url='/README')['headers']['ETag']
149 assert etag == self.get(url='/')['headers']['ETag'], 'same ETag'
154 assert etag != self.get(url='/')['headers']['ETag'], 'new ETag'
157 resp = self.get(url='/dir')
168 assert self.get(url='/dir/fi le')['body'] == 'blah', 'file name'
172 assert self.get(url='/di r/fi le')['body'] == 'blah', 'dir name'
177 self.get(url='/ di r /fi le')['body'] == 'blah'
181 self.get(url='/%20di%20r%20/fi le')['body'] == 'blah'
184 self.get(url='/ di r %2Ffi le')['body'] == 'blah'
186 assert self.get(url='/ di r /fi%20le')['body'] == 'blah', 'file encoded'
188 self.get(url='/%20di%20r%20%2Ffi%20le')['body'] == 'blah'
191 self.get(url='/%20%64%69%20%72%20%2F%66%69%20%6C%65')['body']
201 self.get(url='/%20di%20r%20/%20fi%20le%20')['body'] == 'blah'
221 self.get(url='/ di r /фа йл')['body'] == 'blah'
230 self.get(url='/ди ректория/фа йл')['body'] == 'blah'
237 assert self.get(url='/unix_socket')['status'] == 404, 'socket'
244 assert self.get(url='/fifo')['status'] == 404, 'fifo'
256 assert self.get(url='/dir/../dir/file')['status'] == 200, 'relative'
258 assert self.get(url='./')['status'] == 400, 'path invalid'
259 assert self.get(url='../')['status'] == 400, 'path invalid 2'
260 assert self.get(url='/..')['status'] == 400, 'path invalid 3'
261 assert self.get(url='../assets/')['status'] == 400, 'path invalid 4'
262 assert self.get(url='/../assets/')['status'] == 400, 'path invalid 5'
265 _, sock = self.get(url='/', start=True, no_recv=True)
266 _, sock2 = self.get(url='/', start=True, no_recv=True)
286 self.get(url='/README')['headers']['Content-Type']
290 self.get(url='/index.html')['headers']['Content-Type']
294 self.get(url='/')['headers']['Content-Type'] == 'text/plain'
297 self.get(url='/dir/file')['headers']['Content-Type'] == 'text/plain'
307 assert 'Content-Type' not in self.get(url='/dir/file'), 'partial match'
338 'Content-Type' not in self.get(url='/dir/file')['headers']
345 self.get(url='/dir/file')['headers']['Content-Type'] == 'text/plain'
352 self.get(url='/dir/file')['headers']['Content-Type'] == 'text/plain'
355 'Content-Type' not in self.get(url='/log.log')['headers']
362 self.get(url='/log.log')['headers']['Content-Type']