Lines Matching refs:get

39             self.get(headers={'Host': host, 'Connection': 'close'})['status']
45 self.get(
56 assert self.get()['status'] == 200, 'GET'
62 assert self.get()['status'] == 200, 'GET'
69 assert self.get()['status'] == 404, 'GET'
75 assert self.get()['status'] == 404, 'GET'
82 assert self.get()['status'] == 200, 'GET'
88 assert self.get()['status'] == 200, 'GET'
94 assert self.get()['status'] == 200, 'GET'
100 assert self.get()['status'] == 200, 'GET'
113 assert self.get()['status'] == 404
116 assert self.get()['status'] == 200
117 assert self.get(url='/blah')['status'] == 404
121 assert self.get()['status'] == 200
124 assert self.get()['status'] == 404
127 assert self.get()['status'] == 404
128 assert self.get(url='/blah')['status'] == 200
131 assert self.get()['status'] == 200
132 assert self.get(url='/bla')['status'] == 200
133 assert self.get(url='/blah')['status'] == 404
134 assert self.get(url='/blah1')['status'] == 200
137 assert self.get()['status'] == 200
138 assert self.get(url='/blah')['status'] == 200
139 assert self.get(url='/blah1')['status'] == 404
140 assert self.get(url='/blah12')['status'] == 404
141 assert self.get(url='/blah2')['status'] == 200
154 assert self.get()['status'] == 200, 'GET'
158 assert self.get()['status'] == 200, 'GET'
161 assert self.get()['status'] == 200, 'GET'
166 assert self.get()['status'] == 200, 'GET'
170 assert self.get()['status'] == 200, 'GET'
173 assert self.get()['status'] == 200, 'GET'
178 assert self.get()['status'] == 200, 'GET'
183 assert self.get(url='/blah')['status'] == 200, '/blah'
184 assert self.get(url='/BLAH')['status'] == 404, '/BLAH'
189 assert self.get(url='/blah')['status'] == 200, '/blah'
190 assert self.get(url='/BLAH')['status'] == 404, '/BLAH'
195 assert self.get(url='/axy')['status'] == 200, '/axy'
196 assert self.get(url='/ayx')['status'] == 404, '/ayx'
201 assert self.get(url='/bla_foo')['status'] == 404, '/bla_foo'
206 assert self.get(url='/bla_foo')['status'] == 404, '/bla_foo'
211 assert self.get(url='/foo_bla')['status'] == 404, '/foo_bla'
216 assert self.get(url='/blah')['status'] == 200, '/blah'
217 assert self.get(url='/BLAH')['status'] == 404, '/BLAH'
222 assert self.get(url='/blah')['status'] == 200, '/blah'
223 assert self.get(url='/BLAH')['status'] == 404, '/BLAH'
228 assert self.get(url='/blah-a-B-c-blah')['status'] == 200
229 assert self.get(url='/a-B-c')['status'] == 200
230 assert self.get(url='/aBc')['status'] == 200
231 assert self.get(url='/aBCaBbc')['status'] == 200
232 assert self.get(url='/ABc')['status'] == 404
239 assert self.get(url='/')['status'] == 200, 'empty regexp'
240 assert self.get(url='/anything')['status'] == 200, '/anything'
243 assert self.get(url='/')['status'] == 404, 'empty regexp 2'
244 assert self.get(url='/nothing')['status'] == 404, '/nothing'
258 assert self.get(url='/nothing_z')['status'] == 500, '/nothing_z'
264 assert self.get(url='/nothing_z')['status'] == 500, '/nothing_z'
272 assert self.get(url='/rlah')['status'] == 404, '/rlah'
273 assert self.get(url='/blah')['status'] == 200, '/blah'
274 assert self.get(url='/blh')['status'] == 200, '/blh'
275 assert self.get(url='/BLAH')['status'] == 404, '/BLAH'
283 assert self.get(url='/rlah')['status'] == 200, '/rlah'
284 assert self.get(url='/blah')['status'] == 404, '/blah'
285 assert self.get(url='/blh')['status'] == 404, '/blh'
286 assert self.get(url='/BLAH')['status'] == 200, '/BLAH'
306 assert self.get()['status'] == 200
349 assert self.get(port=7081)['status'] == 200, 'routes absent'
365 assert self.get()['status'] == 404, 'route empty'
379 assert self.get()['status'] == 200, 'route match absent'
516 assert self.get()['status'] == 200, 'rules two match first'
541 assert self.get()['status'] == 200, 'routes two'
546 assert self.get()['status'] == 200, 'localhost'
558 self.get(headers={'Connection': 'close'})['status'] == 400
576 assert self.get()['status'] == 200, 'localhost'
582 assert self.get()['status'] == 404, 'localhost'
609 self.get(http_10=True, headers={})['status'] == 200
611 assert self.get()['status'] == 404, 'match host empty 3'
616 assert self.get()['status'] == 404, '/'
617 assert self.get(url='/blah')['status'] == 200, '/blah'
618 assert self.get(url='/blah#foo')['status'] == 200, '/blah#foo'
619 assert self.get(url='/blah?var')['status'] == 200, '/blah?var'
620 assert self.get(url='//blah')['status'] == 200, '//blah'
621 assert self.get(url='/slash/foo/../')['status'] == 200, 'relative'
622 assert self.get(url='/slash/./')['status'] == 200, '/slash/./'
623 assert self.get(url='/slash//.//')['status'] == 200, 'adjacent slashes'
624 assert self.get(url='/%')['status'] == 400, 'percent'
625 assert self.get(url='/%1')['status'] == 400, 'percent digit'
626 assert self.get(url='/%A')['status'] == 400, 'percent letter'
627 assert self.get(url='/slash/.?args')['status'] == 200, 'dot args'
628 assert self.get(url='/slash/.#frag')['status'] == 200, 'dot frag'
630 self.get(url='/slash/foo/..?args')['status'] == 200
633 self.get(url='/slash/foo/..#frag')['status'] == 200
635 assert self.get(url='/slash/.')['status'] == 200, 'trailing dot'
637 self.get(url='/slash/foo/..')['status'] == 200
643 assert self.get(url='/blah')['status'] == 404, '/blah'
644 assert self.get(url='/BlaH')['status'] == 404, '/BlaH'
645 assert self.get(url='/BLAH')['status'] == 200, '/BLAH'
650 assert self.get(url='/%62%6c%61%68')['status'] == 200, 'normalize'
655 assert self.get(url='/blah')['status'] == 200, 'empty array'
659 assert self.get()['status'] == 404, 'redefine request'
664 assert self.get()['status'] == 200, 'redefine request 2'
667 assert self.get()['status'] == 404, 'redefine request 3'
676 assert self.get()['status'] == 200, 'redefine request 4'
679 assert self.get()['status'] == 404, 'redefine request 5'
684 assert self.get()['status'] == 200, 'redefine request 6'
694 assert self.get()['status'] == 200, 'redefine request 8'
699 assert self.get()['status'] == 200, 'routes edit GET'
713 assert self.get()['status'] == 200, 'routes edit GET 2'
720 assert self.get()['status'] == 404, 'routes edit GET 3'
733 assert self.get()['status'] == 404, 'routes edit GET 4'
740 assert self.get()['status'] == 404, 'routes edit GET 5'
748 assert self.get()['status'] == 404, 'routes edit GET 6'
766 assert self.get()['status'] == 200, 'routes edit GET 7'
780 assert self.get()['status'] == 200, 'match edit GET'
791 assert self.get()['status'] == 200, 'match edit GET 2'
802 assert self.get()['status'] == 200, 'match edit GET 3'
813 assert self.get()['status'] == 200, 'match edit GET 4'
830 assert self.get()['status'] == 200, 'match edit GET 5'
841 assert self.get()['status'] == 200, 'match edit GET 6'
849 assert self.get()['status'] == 200, 'match edit GET 7'
864 assert self.get()['status'] == 200, 'match edit GET 8'
869 assert self.get()['status'] == 200, 'routes match rules'
876 assert self.get()['status'] == 500, 'routes loop'
881 assert self.get()['status'] == 200, 'match headers'
890 assert self.get()['status'] == 404, 'match headers multiple'
892 self.get(
903 self.get(
917 self.get(
927 self.get(
937 self.get(
950 assert self.get()['status'] == 404, 'match headers multiple rules'
952 self.get(
962 self.get(
972 self.get(
983 self.get(
997 self.get(
1015 assert self.get()['status'] == 404, 'localhost'
1020 assert self.get()['status'] == 200, 'empty'
1023 assert self.get()['status'] == 200, 'empty 2'
1028 assert self.get()['status'] == 404, 'array empty'
1030 self.get(
1054 assert self.get(headers=hds)['status'] == 200, 'headers array match'
1059 self.get(headers=hds)['status'] == 404
1062 assert self.get()['status'] == 404, 'match headers array'
1079 assert self.get()['status'] == 404, 'args'
1080 assert self.get(url='/?foo=bar')['status'] == 200, 'args 2'
1081 assert self.get(url='/?foo=bar1')['status'] == 404, 'args 3'
1082 assert self.get(url='/?1foo=bar')['status'] == 404, 'args 4'
1083 assert self.get(url='/?Foo=bar')['status'] == 404, 'case'
1084 assert self.get(url='/?foo=Bar')['status'] == 404, 'case 2'
1117 assert self.get(url='/?' + query)['status'] == 200
1130 assert self.get()['status'] == 200, 'arguments empty'
1133 assert self.get()['status'] == 200, 'arguments empty 2'
1137 assert self.get(url='/? fo o = b a r&')['status'] == 200
1138 assert self.get(url='/?+fo+o+=+b+a+r&')['status'] == 200
1139 assert self.get(url='/?%20fo%20o%20=%20b%20a%20r&')['status'] == 200
1142 assert self.get(url='/? foo= bar')['status'] == 200
1143 assert self.get(url='/?+foo=+bar')['status'] == 200
1144 assert self.get(url='/?%20foo=%20bar')['status'] == 200
1145 assert self.get(url='/?+foo= bar')['status'] == 200
1146 assert self.get(url='/?%20foo=+bar')['status'] == 200
1150 assert self.get(url='/?%3D=%3D')['status'] == 200
1151 assert self.get(url='/?%3D==')['status'] == 200
1152 assert self.get(url='/?===')['status'] == 404
1153 assert self.get(url='/?%3D%3D%3D')['status'] == 404
1154 assert self.get(url='/?==%3D')['status'] == 404
1158 assert self.get(url='/?%D0%AE=%D0%BD')['status'] == 200
1159 assert self.get(url='/?%d0%ae=%d0%Bd')['status'] == 200
1163 assert self.get(url='/?%23=%23')['status'] == 200
1164 assert self.get(url='/?%23=%23#')['status'] == 200
1165 assert self.get(url='/?#=#')['status'] == 404
1166 assert self.get(url='/?%23=#')['status'] == 404
1170 assert self.get(url='/?foo')['status'] == 200
1171 assert self.get(url='/?foo=')['status'] == 200
1172 assert self.get(url='/?foo=blah')['status'] == 200
1173 assert self.get(url='/?blah=foo')['status'] == 404
1176 assert self.get(url='/?foo=%xx')['status'] == 200
1179 assert self.get(url='/?foo=*xx')['status'] == 200
1180 assert self.get(url='/?foo=xx')['status'] == 404
1183 assert self.get(url='/?foo=xx*')['status'] == 200
1184 assert self.get(url='/?foo=xx*x')['status'] == 404
1187 assert self.get(url='/?foo=12')['status'] == 200
1188 assert self.get(url='/?foo=1blah2')['status'] == 200
1189 assert self.get(url='/?foo=1%2A2')['status'] == 200
1190 assert self.get(url='/?foo=x12')['status'] == 404
1193 assert self.get(url='/?foo=barxx&%=%')['status'] == 200
1194 assert self.get(url='/?foo=barxx&x%=%')['status'] == 404
1198 assert self.get(url='/?bar')['status'] == 404
1199 assert self.get(url='/?foo')['status'] == 404
1200 assert self.get(url='/?foo=')['status'] == 404
1201 assert self.get(url='/?foo=%25')['status'] == 200
1204 assert self.get(url='/?bar')['status'] == 404
1205 assert self.get(url='/?foo')['status'] == 404
1206 assert self.get(url='/?foo=')['status'] == 404
1207 assert self.get(url='/?foo=blah')['status'] == 404
1210 assert self.get(url='/?foo=blah')['status'] == 200
1211 assert self.get(url='/?foo=%')['status'] == 404
1214 assert self.get(url='/?foo=%21blah')['status'] == 200
1215 assert self.get(url='/?foo=!blah')['status'] == 200
1216 assert self.get(url='/?foo=bar')['status'] == 404
1219 assert self.get(url='/?foo=blah')['status'] == 200
1220 assert self.get(url='/?foo=!blah')['status'] == 200
1221 assert self.get(url='/?foo=!!a')['status'] == 404
1222 assert self.get(url='/?foo=!!bla')['status'] == 404
1226 assert self.get(url='/?%=%')['status'] == 200
1227 assert self.get(url='/?%25=%25')['status'] == 200
1228 assert self.get(url='/?%25=%')['status'] == 200
1231 assert self.get(url='/?%1=%2')['status'] == 200
1232 assert self.get(url='/?%251=%252')['status'] == 200
1233 assert self.get(url='/?%251=%2')['status'] == 200
1236 assert self.get(url='/?%!%1=%$%2')['status'] == 200
1237 assert self.get(url='/?%25!%251=%25$%252')['status'] == 200
1238 assert self.get(url='/?%25!%1=%$%2')['status'] == 200
1242 assert self.get(url='/?foo=%26')['status'] == 200
1243 assert self.get(url='/?foo=%26&')['status'] == 200
1244 assert self.get(url='/?foo=%26%26')['status'] == 404
1245 assert self.get(url='/?foo=&')['status'] == 404
1248 assert self.get(url='/?%26=')['status'] == 200
1249 assert self.get(url='/?%26=&')['status'] == 200
1250 assert self.get(url='/?%26=%26')['status'] == 404
1251 assert self.get(url='/?&=')['status'] == 404
1256 assert self.get(url='/?foo')['status'] == 200, 'complex'
1257 assert self.get(url='/?blah=blah&foo=')['status'] == 200, 'complex 2'
1258 assert self.get(url='/?&&&foo&&&')['status'] == 200, 'complex 3'
1259 assert self.get(url='/?foo&foo=bar&foo')['status'] == 404, 'complex 4'
1260 assert self.get(url='/?foo=&foo')['status'] == 200, 'complex 5'
1261 assert self.get(url='/?&=&foo&==&')['status'] == 200, 'complex 6'
1262 assert self.get(url='/?&=&bar&==&')['status'] == 404, 'complex 7'
1267 assert self.get()['status'] == 404, 'multiple'
1269 self.get(url='/?foo=bar&blah=test')['status'] == 200
1271 assert self.get(url='/?foo=bar&blah')['status'] == 404, 'multiple 3'
1272 assert self.get(url='/?foo=bar&blah=tes')['status'] == 404, 'multiple 4'
1274 self.get(url='/?foo=b%61r&bl%61h=t%65st')['status'] == 200
1280 assert self.get()['status'] == 404, 'rules'
1281 assert self.get(url='/?foo=bar')['status'] == 200, 'rules 2'
1282 assert self.get(url='/?foo=blah')['status'] == 200, 'rules 3'
1284 self.get(url='/?foo=blah&foo=bar&foo=blah')['status'] == 200
1287 self.get(url='/?foo=blah&foo=bar&foo=')['status'] == 404
1302 assert self.get()['status'] == 404, 'arr'
1303 assert self.get(url='/?var1=val123')['status'] == 200, 'arr 2'
1304 assert self.get(url='/?var2=val2')['status'] == 200, 'arr 3'
1305 assert self.get(url='/?var3=bar')['status'] == 200, 'arr 4'
1306 assert self.get(url='/?var1=bar')['status'] == 404, 'arr 5'
1307 assert self.get(url='/?var1=bar&var4=foo')['status'] == 200, 'arr 6'
1313 assert self.get(url='/?var2=val2')['status'] == 404, 'arr 7'
1314 assert self.get(url='/?var3=foo')['status'] == 200, 'arr 8'
1330 assert self.get(url='/')['status'] == 404
1331 assert self.get(url='/?')['status'] == 404
1332 assert self.get(url='/?foo')['status'] == 200
1333 assert self.get(url='/?foo=')['status'] == 200
1334 assert self.get(url='/?foo=baz')['status'] == 200
1337 assert self.get(url='/?foo=&')['status'] == 200
1340 assert self.get(url='/?a=b&c=d')['status'] == 200
1343 assert self.get(url='/?a=b%26c%3Dd')['status'] == 200
1344 assert self.get(url='/?a=b&c=d')['status'] == 200
1347 assert self.get(url='/?a=b&c=d e')['status'] == 200
1352 assert self.get()['status'] == 404, 'no args'
1353 assert self.get(url='/?foo')['status'] == 200, 'arg first'
1354 assert self.get(url='/?bar')['status'] == 200, 'arg second'
1360 assert self.get(url='/?foo')['status'] == 200, 'still arg first'
1361 assert self.get(url='/?bar')['status'] == 404, 'no arg second'
1365 assert self.get(url='/?f')['status'] == 404, 'negative arg'
1366 assert self.get(url='/?fo')['status'] == 404, 'negative arg 2'
1367 assert self.get(url='/?foo')['status'] == 200, 'negative arg 3'
1370 assert self.get()['status'] == 200, 'empty array'
1383 assert self.get()['status'] == 404, 'cookie'
1395 assert self.get()['status'] == 200, 'cookies empty'
1398 assert self.get()['status'] == 200, 'cookies empty 2'
1407 assert self.get()['status'] == 404, 'multiple'
1423 assert self.get()['status'] == 404, 'multiple rules'
1442 assert self.get()['status'] == 404, 'cookies array'
1482 assert self.get(sock=sock)['status'] == 200, 'exact'
1483 assert self.get(sock=sock2)['status'] == 404, 'exact 2'
1489 assert self.get(sock=sock)['status'] == 404, 'negative'
1490 assert self.get(sock=sock2)['status'] == 200, 'negative 2'
1496 assert self.get(sock=sock)['status'] == 404, 'negative 3'
1497 assert self.get(sock=sock2)['status'] == 404, 'negative 4'
1503 assert self.get(sock=sock)['status'] == 200, 'range single'
1504 assert self.get(sock=sock2)['status'] == 404, 'range single 2'
1523 assert self.get(sock=socks[0][0])['status'] == 404, 'range'
1524 assert self.get(sock=socks[1][0])['status'] == 200, 'range 2'
1525 assert self.get(sock=socks[2][0])['status'] == 200, 'range 3'
1526 assert self.get(sock=socks[3][0])['status'] == 200, 'range 4'
1527 assert self.get(sock=socks[4][0])['status'] == 404, 'range 5'
1544 assert self.get(sock=socks[0][0])['status'] == 200, 'array'
1545 assert self.get(sock=socks[1][0])['status'] == 404, 'array 2'
1546 assert self.get(sock=socks[2][0])['status'] == 200, 'array 3'
1558 return self.get(sock_type='ipv6', port=7081)
1561 assert self.get()['status'] == 200, 'exact'
1565 assert self.get()['status'] == 200, 'exact 2'
1569 assert self.get()['status'] == 404, 'exact neg'
1573 assert self.get()['status'] == 404, 'exact 3'
1577 assert self.get()['status'] == 200, 'range single'
1581 assert self.get()['status'] == 404, 'range single 2'
1585 assert self.get()['status'] == 404, 'range'
1589 assert self.get()['status'] == 200, 'range 2'
1593 assert self.get()['status'] == 200, 'range 3'
1597 assert self.get()['status'] == 200, 'range 4'
1601 assert self.get()['status'] == 404, 'range 5'
1605 assert self.get()['status'] == 200, 'range 6'
1618 assert self.get(sock_type='ipv6')['status'] == 200, 'exact'
1619 assert self.get(port=7081)['status'] == 404, 'exact ipv4'
1622 assert self.get(sock_type='ipv6')['status'] == 200, 'exact 2'
1623 assert self.get(port=7081)['status'] == 404, 'exact 2 ipv4'
1626 assert self.get(sock_type='ipv6')['status'] == 404, 'exact neg'
1627 assert self.get(port=7081)['status'] == 200, 'exact neg ipv4'
1630 assert self.get(sock_type='ipv6')['status'] == 404, 'exact 3'
1631 assert self.get(port=7081)['status'] == 404, 'exact 3 ipv4'
1634 assert self.get(sock_type='ipv6')['status'] == 200, 'range'
1635 assert self.get(port=7081)['status'] == 404, 'range ipv4'
1638 assert self.get(sock_type='ipv6')['status'] == 404, 'range 2'
1639 assert self.get(port=7081)['status'] == 404, 'range 2 ipv4'
1642 assert self.get(sock_type='ipv6')['status'] == 404, 'range 3'
1643 assert self.get(port=7081)['status'] == 404, 'range 3 ipv4'
1646 assert self.get(sock_type='ipv6')['status'] == 200, 'range 4'
1647 assert self.get(port=7081)['status'] == 404, 'range 4 ipv4'
1650 assert self.get(sock_type='ipv6')['status'] == 200, 'range 5'
1651 assert self.get(port=7081)['status'] == 404, 'range 5 ipv4'
1654 assert self.get(sock_type='ipv6')['status'] == 200, 'range 6'
1655 assert self.get(port=7081)['status'] == 404, 'range 6 ipv4'
1667 return self.get(sock_type='ipv6', port=7081)
1670 assert self.get()['status'] == 200, '32'
1674 assert self.get()['status'] == 404, '32 2'
1678 assert self.get()['status'] == 200, '31'
1682 assert self.get()['status'] == 200, '1'
1686 assert self.get()['status'] == 200, '0'
1699 assert self.get(sock_type='ipv6')['status'] == 200, '128'
1700 assert self.get(port=7081)['status'] == 404, '128 ipv4'
1703 assert self.get(sock_type='ipv6')['status'] == 404, '128 2'
1704 assert self.get(port=7081)['status'] == 404, '128 ipv4'
1707 assert self.get(sock_type='ipv6')['status'] == 200, '127'
1708 assert self.get(port=7081)['status'] == 404, '127 ipv4'
1711 assert self.get(sock_type='ipv6')['status'] == 200, '32'
1712 assert self.get(port=7081)['status'] == 404, '32 ipv4'
1715 assert self.get(sock_type='ipv6')['status'] == 200, '1'
1716 assert self.get(port=7081)['status'] == 404, '1 ipv4'
1719 assert self.get(sock_type='ipv6')['status'] == 200, '0'
1720 assert self.get(port=7081)['status'] == 404, '0 ipv4'
1735 self.get(sock_type='unix', addr=addr)['status'] == 200
1740 self.get(sock_type='unix', addr=addr)['status'] == 200
1744 assert self.get(port=7081)['status'] == 404, 'unix ipv4'
1745 assert self.get(sock_type='unix', addr=addr)['status'] == 200, 'unix'
1798 assert self.get()['status'] == 200, 'source any'
1824 assert self.get()['status'] == 404, 'source none'
1833 assert self.get()['status'] == 200, 'dest'
1834 assert self.get(port=7081)['status'] == 404, 'dest 2'
1837 assert self.get()['status'] == 200, 'dest 3'
1838 assert self.get(port=7081)['status'] == 404, 'dest 4'
1841 assert self.get()['status'] == 404, 'dest neg'
1842 assert self.get(port=7081)['status'] == 200, 'dest neg 2'
1845 assert self.get()['status'] == 404, 'dest neg 3'
1846 assert self.get(port=7081)['status'] == 404, 'dest neg 4'
1849 assert self.get()['status'] == 200, 'dest neg 5'
1852 assert self.get()['status'] == 404, 'dest neg 6'
1857 assert self.get()['status'] == 404, 'dest neg 7'
1858 assert self.get(port=7081)['status'] == 200, 'dest neg 8'
1861 assert self.get()['status'] == 404, 'dest neg 9'
1866 assert self.get()['status'] == 404, 'dest neg 10'
1867 assert self.get(port=7081)['status'] == 200, 'dest neg 11'
1872 assert self.get()['status'] == 404, 'dest neg 12'
1873 assert self.get(port=7081)['status'] == 404, 'dest neg 13'
1878 assert self.get()['status'] == 200, 'dest neg 14'
1879 assert self.get(port=7081)['status'] == 404, 'dest neg 15'
1884 assert self.get()['status'] == 404, 'dest neg 16'
1885 assert self.get(port=7081)['status'] == 404, 'dest neg 17'
1907 assert self.get()['status'] == 200, 'proxy'