SYMBOL INDEX (882 symbols across 27 files) FILE: bottle.py function _cli_parse (line 30) | def _cli_parse(args): # pragma: no coverage function _cli_patch (line 52) | def _cli_patch(cli_args): # pragma: no coverage function _wsgi_recode (line 106) | def _wsgi_recode(src): function _raise (line 113) | def _raise(*a): function tob (line 118) | def tob(s, enc='utf8'): function touni (line 124) | def touni(s, enc='utf8', err='strict'): function _stderr (line 130) | def _stderr(*args): function update_wrapper (line 138) | def update_wrapper(wrapper, wrapped, *a, **ka): function depr (line 149) | def depr(major, minor, cause, fix, stacklevel=3): function makelist (line 159) | def makelist(data): # This is just too handy class DictProperty (line 168) | class DictProperty: method __init__ (line 171) | def __init__(self, attr, key=None, read_only=False): method __call__ (line 174) | def __call__(self, func): method __get__ (line 179) | def __get__(self, obj, cls): method __set__ (line 185) | def __set__(self, obj, value): method __delete__ (line 189) | def __delete__(self, obj): class cached_property (line 194) | class cached_property: method __init__ (line 199) | def __init__(self, func): method __get__ (line 203) | def __get__(self, obj, cls): class lazy_attribute (line 209) | class lazy_attribute: method __init__ (line 212) | def __init__(self, func): method __get__ (line 216) | def __get__(self, obj, cls): class BottleException (line 227) | class BottleException(Exception): class RouteError (line 236) | class RouteError(BottleException): class RouterUnknownModeError (line 240) | class RouterUnknownModeError(RouteError): class RouteSyntaxError (line 244) | class RouteSyntaxError(RouteError): class RouteBuildError (line 248) | class RouteBuildError(RouteError): function _re_flatten (line 252) | def _re_flatten(p): class Router (line 261) | class Router: method __init__ (line 280) | def __init__(self, strict=False): method add_filter (line 297) | def add_filter(self, name, func): method _itertokens (line 308) | def _itertokens(self, rule): method add (line 329) | def add(self, rule, method, target, name=None): method _compile (line 405) | def _compile(self, method): method build (line 417) | def build(self, _name, *anons, **query): method match (line 430) | def match(self, environ): class Route (line 467) | class Route: method __init__ (line 473) | def __init__(self, app, rule, method, callback, method call (line 498) | def call(self): method reset (line 503) | def reset(self): method prepare (line 508) | def prepare(self): method all_plugins (line 512) | def all_plugins(self): method _make_callback (line 523) | def _make_callback(self): method get_undecorated_callback (line 534) | def get_undecorated_callback(self): method get_callback_args (line 555) | def get_callback_args(self): method get_config (line 564) | def get_config(self, key, default=None): method __repr__ (line 572) | def __repr__(self): class Bottle (line 583) | class Bottle: method _global_config (line 593) | def _global_config(cls): method __init__ (line 598) | def __init__(self, **kwargs): method _hooks (line 640) | def _hooks(self): method add_hook (line 643) | def add_hook(self, name, func): method remove_hook (line 659) | def remove_hook(self, name, func): method trigger_hook (line 665) | def trigger_hook(self, __name, *args, **kwargs): method hook (line 669) | def hook(self, name): method _mount_wsgi (line 679) | def _mount_wsgi(self, prefix, app, **options): method _mount_app (line 715) | def _mount_app(self, prefix, app, **options): method mount (line 738) | def mount(self, prefix, app, **options): method merge (line 768) | def merge(self, routes): method install (line 778) | def install(self, plugin): method uninstall (line 790) | def uninstall(self, plugin): method reset (line 805) | def reset(self, route=None): method close (line 819) | def close(self): method run (line 824) | def run(self, **kwargs): method match (line 828) | def match(self, environ): method get_url (line 834) | def get_url(self, routename, **kargs): method add_route (line 840) | def add_route(self, route): method route (line 847) | def route(self, method get (line 898) | def get(self, path=None, method='GET', **options): method post (line 902) | def post(self, path=None, method='POST', **options): method put (line 906) | def put(self, path=None, method='PUT', **options): method delete (line 910) | def delete(self, path=None, method='DELETE', **options): method patch (line 914) | def patch(self, path=None, method='PATCH', **options): method error (line 918) | def error(self, code=500, callback=None): method default_error_handler (line 940) | def default_error_handler(self, res): method _handle (line 943) | def _handle(self, environ): method _cast (line 984) | def _cast(self, out, peek=None): method wsgi (line 1059) | def wsgi(self, environ, start_response): method __call__ (line 1091) | def __call__(self, environ, start_response): method __enter__ (line 1095) | def __enter__(self): method __exit__ (line 1100) | def __exit__(self, exc_type, exc_value, traceback): method __setattr__ (line 1103) | def __setattr__(self, name, value): class BaseRequest (line 1113) | class BaseRequest: method __init__ (line 1127) | def __init__(self, environ=None): method app (line 1135) | def app(self): method route (line 1140) | def route(self): method url_args (line 1145) | def url_args(self): method path (line 1150) | def path(self): method method (line 1156) | def method(self): method headers (line 1161) | def headers(self): method get_header (line 1166) | def get_header(self, name, default=None): method cookies (line 1171) | def cookies(self): method get_cookie (line 1178) | def get_cookie(self, key, default=None, secret=None, digestmod=hashlib... method query (line 1197) | def query(self): method forms (line 1209) | def forms(self): method params (line 1221) | def params(self): method files (line 1232) | def files(self): method json (line 1244) | def json(self): method _iter_body (line 1262) | def _iter_body(self, read, bufsize): method _iter_chunked (line 1271) | def _iter_chunked(read, bufsize): method _body (line 1299) | def _body(self): method _get_body_string (line 1319) | def _get_body_string(self, maxread): method body (line 1330) | def body(self): method chunked (line 1340) | def chunked(self): method POST (line 1349) | def POST(self): method url (line 1383) | def url(self): method urlparts (line 1391) | def urlparts(self): method fullpath (line 1409) | def fullpath(self): method query_string (line 1414) | def query_string(self): method script_name (line 1420) | def script_name(self): method path_shift (line 1428) | def path_shift(self, shift=1): method content_length (line 1439) | def content_length(self): method content_type (line 1446) | def content_type(self): method is_xhr (line 1451) | def is_xhr(self): method is_ajax (line 1459) | def is_ajax(self): method auth (line 1464) | def auth(self): method remote_route (line 1478) | def remote_route(self): method remote_addr (line 1489) | def remote_addr(self): method copy (line 1495) | def copy(self): method get (line 1499) | def get(self, key, default=None): method __getitem__ (line 1502) | def __getitem__(self, key): method __delitem__ (line 1505) | def __delitem__(self, key): method __iter__ (line 1509) | def __iter__(self): method __len__ (line 1512) | def __len__(self): method keys (line 1515) | def keys(self): method __setitem__ (line 1518) | def __setitem__(self, key, value): method __repr__ (line 1537) | def __repr__(self): method __getattr__ (line 1540) | def __getattr__(self, name): method __setattr__ (line 1548) | def __setattr__(self, name, value): method __delattr__ (line 1556) | def __delattr__(self, name): function _hkey (line 1563) | def _hkey(key): function _hval (line 1570) | def _hval(value): class HeaderProperty (line 1577) | class HeaderProperty: method __init__ (line 1578) | def __init__(self, name, reader=None, writer=None, default=''): method __get__ (line 1583) | def __get__(self, obj, _): method __set__ (line 1588) | def __set__(self, obj, value): method __delete__ (line 1591) | def __delete__(self, obj): class BaseResponse (line 1595) | class BaseResponse: method __init__ (line 1615) | def __init__(self, body='', status=None, headers=None, **more_headers): method copy (line 1639) | def copy(self, cls=None): method __iter__ (line 1653) | def __iter__(self): method close (line 1656) | def close(self): method status_line (line 1661) | def status_line(self): method status_code (line 1666) | def status_code(self): method _set_status (line 1670) | def _set_status(self, status): method _get_status (line 1685) | def _get_status(self): method headers (line 1698) | def headers(self): method __contains__ (line 1705) | def __contains__(self, name): method __delitem__ (line 1708) | def __delitem__(self, name): method __getitem__ (line 1711) | def __getitem__(self, name): method __setitem__ (line 1714) | def __setitem__(self, name, value): method get_header (line 1717) | def get_header(self, name, default=None): method set_header (line 1722) | def set_header(self, name, value): method add_header (line 1727) | def add_header(self, name, value): method iter_headers (line 1731) | def iter_headers(self): method _wsgi_status_line (line 1736) | def _wsgi_status_line(self): method headerlist (line 1741) | def headerlist(self): method charset (line 1765) | def charset(self, default='UTF-8'): method set_cookie (line 1771) | def set_cookie(self, name, value, secret=None, digestmod=hashlib.sha25... method delete_cookie (line 1852) | def delete_cookie(self, key, **kwargs): method __repr__ (line 1859) | def __repr__(self): function _local_property (line 1866) | def _local_property(): class LocalRequest (line 1884) | class LocalRequest(BaseRequest): class LocalResponse (line 1894) | class LocalResponse(BaseResponse): class HTTPResponse (line 1912) | class HTTPResponse(Response, BottleException): method __init__ (line 1920) | def __init__(self, body='', status=None, headers=None, **more_headers): method apply (line 1923) | def apply(self, other): class HTTPError (line 1932) | class HTTPError(HTTPResponse): method __init__ (line 1937) | def __init__(self, class PluginError (line 1951) | class PluginError(BottleException): class JSONPlugin (line 1955) | class JSONPlugin: method __init__ (line 1959) | def __init__(self, json_dumps=json_dumps): method setup (line 1962) | def setup(self, app): method apply (line 1974) | def apply(self, callback, route): class TemplatePlugin (line 1999) | class TemplatePlugin: method setup (line 2007) | def setup(self, app): method apply (line 2010) | def apply(self, callback, route): class _ImportRedirect (line 2021) | class _ImportRedirect: method __init__ (line 2022) | def __init__(self, name, impmask): method find_spec (line 2035) | def find_spec(self, fullname, path, target=None): method find_module (line 2041) | def find_module(self, fullname, path=None): method create_module (line 2046) | def create_module(self, spec): method exec_module (line 2049) | def exec_module(self, module): method load_module (line 2052) | def load_module(self, fullname): class MultiDict (line 2067) | class MultiDict(DictMixin): method __init__ (line 2073) | def __init__(self, *a, **k): method __len__ (line 2076) | def __len__(self): method __iter__ (line 2079) | def __iter__(self): method __contains__ (line 2082) | def __contains__(self, key): method __delitem__ (line 2085) | def __delitem__(self, key): method __getitem__ (line 2088) | def __getitem__(self, key): method __setitem__ (line 2091) | def __setitem__(self, key, value): method keys (line 2094) | def keys(self): method values (line 2097) | def values(self): method items (line 2100) | def items(self): method allitems (line 2103) | def allitems(self): method get (line 2111) | def get(self, key, default=None, index=-1, type=None): method append (line 2128) | def append(self, key, value): method replace (line 2132) | def replace(self, key, value): method getall (line 2136) | def getall(self, key): class FormsDict (line 2145) | class FormsDict(MultiDict): method decode (line 2156) | def decode(self, encoding=None): method getunicode (line 2164) | def getunicode(self, name, default=None, encoding=None): method __getattr__ (line 2168) | def __getattr__(self, name, default=str()): class HeaderDict (line 2175) | class HeaderDict(MultiDict): method __init__ (line 2179) | def __init__(self, *a, **ka): method __contains__ (line 2183) | def __contains__(self, key): method __delitem__ (line 2186) | def __delitem__(self, key): method __getitem__ (line 2189) | def __getitem__(self, key): method __setitem__ (line 2192) | def __setitem__(self, key, value): method append (line 2195) | def append(self, key, value): method replace (line 2198) | def replace(self, key, value): method getall (line 2201) | def getall(self, key): method get (line 2204) | def get(self, key, default=None, index=-1): method filter (line 2207) | def filter(self, names): class WSGIHeaderDict (line 2213) | class WSGIHeaderDict(DictMixin): method __init__ (line 2220) | def __init__(self, environ): method _ekey (line 2223) | def _ekey(self, key): method raw (line 2230) | def raw(self, key, default=None): method __getitem__ (line 2234) | def __getitem__(self, key): method __setitem__ (line 2237) | def __setitem__(self, key, value): method __delitem__ (line 2240) | def __delitem__(self, key): method __iter__ (line 2243) | def __iter__(self): method keys (line 2250) | def keys(self): method __len__ (line 2253) | def __len__(self): method __contains__ (line 2256) | def __contains__(self, key): class ConfigDict (line 2260) | class ConfigDict(dict): method __init__ (line 2270) | def __init__(self): method load_module (line 2280) | def load_module(self, name, squash=True): method load_config (line 2300) | def load_config(self, filename, **options): method load_dict (line 2328) | def load_dict(self, source, namespace=''): method update (line 2347) | def update(self, *a, **ka): method setdefault (line 2361) | def setdefault(self, key, value=None): method __setitem__ (line 2366) | def __setitem__(self, key, value): method __delitem__ (line 2382) | def __delitem__(self, key): method _set_virtual (line 2398) | def _set_virtual(self, key, value): method _delete_virtual (line 2410) | def _delete_virtual(self, key): method _on_change (line 2422) | def _on_change(self, key, value): method _add_change_listener (line 2427) | def _add_change_listener(self, func): method meta_get (line 2431) | def meta_get(self, key, metafield, default=None): method meta_set (line 2435) | def meta_set(self, key, metafield, value): method meta_list (line 2442) | def meta_list(self, key): method _define (line 2446) | def _define(self, key, default=_UNSET, help=_UNSET, validate=_UNSET): method _iter_overlays (line 2455) | def _iter_overlays(self): method _make_overlay (line 2461) | def _make_overlay(self): class AppStack (line 2497) | class AppStack(list): method __call__ (line 2500) | def __call__(self): method push (line 2504) | def push(self, value=None): method default (line 2513) | def default(self): class WSGIFileWrapper (line 2520) | class WSGIFileWrapper: method __init__ (line 2521) | def __init__(self, fp, buffer_size=1024 * 64): method __iter__ (line 2526) | def __iter__(self): class _closeiter (line 2534) | class _closeiter: method __init__ (line 2538) | def __init__(self, iterator, close=None): method __iter__ (line 2542) | def __iter__(self): method close (line 2545) | def close(self): function _try_close (line 2550) | def _try_close(obj): class ResourceManager (line 2559) | class ResourceManager: method __init__ (line 2569) | def __init__(self, base='./', opener=open, cachemode='all'): method add_path (line 2579) | def add_path(self, path, base=None, index=None, create=False): method __iter__ (line 2610) | def __iter__(self): method lookup (line 2621) | def lookup(self, name): method open (line 2638) | def open(self, name, mode='r', *args, **kwargs): class FileUpload (line 2645) | class FileUpload: method __init__ (line 2646) | def __init__(self, fileobj, name, filename, headers=None): method get_header (line 2660) | def get_header(self, name, default=None): method filename (line 2665) | def filename(self): method _copy_file (line 2682) | def _copy_file(self, fp, chunk_size=2 ** 16): method save (line 2690) | def save(self, destination, overwrite=False, chunk_size=2 ** 16): function abort (line 2714) | def abort(code=500, text='Unknown Error.'): function redirect (line 2719) | def redirect(url, code=None): function _rangeiter (line 2731) | def _rangeiter(fp, offset, limit, bufsize=1024 * 1024): function static_file (line 2742) | def static_file(filename, root, function debug (line 2856) | def debug(mode=True): function http_date (line 2864) | def http_date(value): function parse_date (line 2880) | def parse_date(ims): function parse_auth (line 2889) | def parse_auth(header): function parse_range_header (line 2900) | def parse_range_header(header, maxlen=0): function _parse_http_header (line 2923) | def _parse_http_header(h): function _parse_qsl (line 2956) | def _parse_qsl(qs, encoding="utf8"): function _lscmp (line 2968) | def _lscmp(a, b): function cookie_encode (line 2975) | def cookie_encode(data, key, digestmod=None): function cookie_decode (line 2985) | def cookie_decode(data, key, digestmod=None): function cookie_is_encoded (line 2999) | def cookie_is_encoded(data): function html_escape (line 3006) | def html_escape(string): function html_quote (line 3012) | def html_quote(string): function yieldroutes (line 3018) | def yieldroutes(func): function path_shift (line 3040) | def path_shift(script_name, path_info, shift=1): function auth_basic (line 3071) | def auth_basic(check, realm="private", text="Access denied"): function make_default_app_wrapper (line 3094) | def make_default_app_wrapper(name): class MultipartError (line 3125) | class MultipartError(HTTPError): method __init__ (line 3126) | def __init__(self, msg): class _MultipartParser (line 3130) | class _MultipartParser: method __init__ (line 3131) | def __init__( method _lineiter (line 3157) | def _lineiter(self): method parse (line 3194) | def parse(self): class _MultipartPart (line 3254) | class _MultipartPart: method __init__ (line 3255) | def __init__(self, buffer_size=2 ** 16, memfile_limit=2 ** 18, charset... method feed (line 3269) | def feed(self, line, nl=""): method write_header (line 3274) | def write_header(self, line, nl): method write_body (line 3292) | def write_body(self, line, nl): method finish_header (line 3314) | def finish_header(self): method finish (line 3335) | def finish(self): method is_buffered (line 3340) | def is_buffered(self): method value (line 3345) | def value(self): method raw (line 3350) | def raw(self): method close (line 3360) | def close(self): class ServerAdapter (line 3374) | class ServerAdapter: method __init__ (line 3377) | def __init__(self, host='127.0.0.1', port=8080, **options): method run (line 3382) | def run(self, handler): # pragma: no cover method _listen_url (line 3386) | def _listen_url(self): method __repr__ (line 3394) | def __repr__(self): class CGIServer (line 3399) | class CGIServer(ServerAdapter): method run (line 3402) | def run(self, handler): # pragma: no cover class FlupFCGIServer (line 3412) | class FlupFCGIServer(ServerAdapter): method run (line 3413) | def run(self, handler): # pragma: no cover class WSGIRefServer (line 3419) | class WSGIRefServer(ServerAdapter): method run (line 3420) | def run(self, app): # pragma: no cover class CherryPyServer (line 3449) | class CherryPyServer(ServerAdapter): method run (line 3450) | def run(self, handler): # pragma: no cover class CherootServer (line 3478) | class CherootServer(ServerAdapter): method run (line 3479) | def run(self, handler): # pragma: no cover class WaitressServer (line 3497) | class WaitressServer(ServerAdapter): method run (line 3498) | def run(self, handler): class PasteServer (line 3503) | class PasteServer(ServerAdapter): method run (line 3504) | def run(self, handler): # pragma: no cover class MeinheldServer (line 3513) | class MeinheldServer(ServerAdapter): method run (line 3514) | def run(self, handler): class FapwsServer (line 3520) | class FapwsServer(ServerAdapter): method run (line 3523) | def run(self, handler): # pragma: no cover class TornadoServer (line 3546) | class TornadoServer(ServerAdapter): method run (line 3549) | def run(self, handler): # pragma: no cover class AppEngineServer (line 3557) | class AppEngineServer(ServerAdapter): method run (line 3561) | def run(self, handler): class TwistedServer (line 3573) | class TwistedServer(ServerAdapter): method run (line 3576) | def run(self, handler): class DieselServer (line 3589) | class DieselServer(ServerAdapter): method run (line 3592) | def run(self, handler): class GeventServer (line 3599) | class GeventServer(ServerAdapter): method run (line 3605) | def run(self, handler): class GunicornServer (line 3620) | class GunicornServer(ServerAdapter): method run (line 3623) | def run(self, handler): class EventletServer (line 3644) | class EventletServer(ServerAdapter): method run (line 3654) | def run(self, handler): class BjoernServer (line 3674) | class BjoernServer(ServerAdapter): method run (line 3677) | def run(self, handler): class AsyncioServerAdapter (line 3682) | class AsyncioServerAdapter(ServerAdapter): method get_event_loop (line 3684) | def get_event_loop(self): class AiohttpServer (line 3688) | class AiohttpServer(AsyncioServerAdapter): method get_event_loop (line 3694) | def get_event_loop(self): method run (line 3698) | def run(self, handler): class AiohttpUVLoopServer (line 3711) | class AiohttpUVLoopServer(AiohttpServer): method get_event_loop (line 3715) | def get_event_loop(self): class AutoServer (line 3720) | class AutoServer(ServerAdapter): method run (line 3725) | def run(self, handler): function load (line 3761) | def load(target, **namespace): function load_app (line 3781) | def load_app(target): function run (line 3799) | def run(app=None, class FileCheckerThread (line 3908) | class FileCheckerThread(threading.Thread): method __init__ (line 3912) | def __init__(self, lockfile, interval): method run (line 3919) | def run(self): method __enter__ (line 3941) | def __enter__(self): method __exit__ (line 3944) | def __exit__(self, exc_type, *_): class TemplateError (line 3954) | class TemplateError(BottleException): class BaseTemplate (line 3958) | class BaseTemplate: method __init__ (line 3964) | def __init__(self, method search (line 3995) | def search(cls, name, lookup=None): method global_config (line 4015) | def global_config(cls, key, *args): method prepare (line 4023) | def prepare(self, **options): method render (line 4030) | def render(self, *args, **kwargs): class MakoTemplate (line 4040) | class MakoTemplate(BaseTemplate): method prepare (line 4041) | def prepare(self, **options): method render (line 4054) | def render(self, *args, **kwargs): class CheetahTemplate (line 4062) | class CheetahTemplate(BaseTemplate): method prepare (line 4063) | def prepare(self, **options): method render (line 4073) | def render(self, *args, **kwargs): class Jinja2Template (line 4083) | class Jinja2Template(BaseTemplate): method prepare (line 4084) | def prepare(self, filters=None, tests=None, globals={}, **kwargs): method render (line 4095) | def render(self, *args, **kwargs): method loader (line 4102) | def loader(self, name): class SimpleTemplate (line 4112) | class SimpleTemplate(BaseTemplate): method prepare (line 4113) | def prepare(self, method co (line 4126) | def co(self): method code (line 4130) | def code(self): method _rebase (line 4144) | def _rebase(self, _env, _name=None, **kwargs): method _include (line 4147) | def _include(self, _env, _name=None, **kwargs): method execute (line 4154) | def execute(self, _stdout, kwargs): method render (line 4177) | def render(self, *args, **kwargs): class StplSyntaxError (line 4188) | class StplSyntaxError(TemplateError): class StplParser (line 4192) | class StplParser: method __init__ (line 4241) | def __init__(self, source, syntax=None, encoding='utf8'): method get_syntax (line 4249) | def get_syntax(self): method set_syntax (line 4253) | def set_syntax(self, syntax): method translate (line 4267) | def translate(self): method read_code (line 4290) | def read_code(self, pysource, multiline): method flush_text (line 4343) | def flush_text(self): method process_inline (line 4365) | def process_inline(chunk): method write_code (line 4369) | def write_code(self, line, comment=''): function template (line 4375) | def template(*args, **kwargs): function view (line 4408) | def view(tpl_name, **defaults): function _main (line 4524) | def _main(argv): # pragma: no coverage function main (line 4578) | def main(): FILE: test/test_app.py class TestApplicationObject (line 10) | class TestApplicationObject(unittest.TestCase): method test_setattr (line 12) | def test_setattr(self): FILE: test/test_auth.py class TestBasicAuth (line 5) | class TestBasicAuth(ServerTestBase): method test__header (line 7) | def test__header(self): FILE: test/test_config.py class TestConfDict (line 7) | class TestConfDict(unittest.TestCase): method test_isadict (line 8) | def test_isadict(self): method test_write (line 31) | def test_write(self): method test_update (line 39) | def test_update(self): method test_string_save_keys (line 46) | def test_string_save_keys(self): method test_namespaces (line 53) | def test_namespaces(self): method test_meta (line 58) | def test_meta(self): method test_load_dict (line 68) | def test_load_dict(self): method test_load_module (line 87) | def test_load_module(self): method test_overlay (line 96) | def test_overlay(self): method test_gc_overlays (line 158) | def test_gc_overlays(self): class TestINIConfigLoader (line 167) | class TestINIConfigLoader(unittest.TestCase): method setUpClass (line 169) | def setUpClass(self): method tearDownClass (line 186) | def tearDownClass(self): method test_load_config (line 190) | def test_load_config(self): FILE: test/test_contextlocals.py function run_thread (line 11) | def run_thread(func): class TestThreadLocals (line 16) | class TestThreadLocals(unittest.TestCase): method test_request (line 17) | def test_request(self): method test_response (line 30) | def test_response(self): FILE: test/test_environ.py class TestRequest (line 18) | class TestRequest(unittest.TestCase): method test_app_property (line 20) | def test_app_property(self): method test_route_property (line 27) | def test_route_property(self): method test_url_for_property (line 32) | def test_url_for_property(self): method test_path (line 39) | def test_path(self): method test_method (line 52) | def test_method(self): method test_script_name (line 60) | def test_script_name(self): method test_pathshift (line 73) | def test_pathshift(self): method test_url (line 92) | def test_url(self): method test_dict_access (line 109) | def test_dict_access(self): method test_readonly_environ (line 124) | def test_readonly_environ(self): method test_header_access (line 129) | def test_header_access(self): method test_header_access_special (line 140) | def test_header_access_special(self): method test_cookie_dict (line 149) | def test_cookie_dict(self): method test_get (line 161) | def test_get(self): method test_post (line 174) | def test_post(self): method test_bodypost (line 195) | def test_bodypost(self): method test_body_noclose (line 206) | def test_body_noclose(self): method test_params (line 220) | def test_params(self): method test_getpostleak (line 233) | def test_getpostleak(self): method test_body (line 246) | def test_body(self): method test_bigbody (line 259) | def test_bigbody(self): method test_tobigbody (line 273) | def test_tobigbody(self): method _test_chunked (line 286) | def _test_chunked(self, body, expect): method test_chunked (line 297) | def test_chunked(self): method test_chunked_meta_fields (line 303) | def test_chunked_meta_fields(self): method test_chunked_not_terminated (line 308) | def test_chunked_not_terminated(self): method test_chunked_wrong_size (line 311) | def test_chunked_wrong_size(self): method test_chunked_illegal_size (line 314) | def test_chunked_illegal_size(self): method test_chunked_not_chunked_at_all (line 317) | def test_chunked_not_chunked_at_all(self): method test_multipart (line 320) | def test_multipart(self): method test_json_empty (line 360) | def test_json_empty(self): method test_json_noheader (line 364) | def test_json_noheader(self): method test_json_tobig (line 374) | def test_json_tobig(self): method test_json_valid (line 384) | def test_json_valid(self): method test_json_forged_header_issue616 (line 394) | def test_json_forged_header_issue616(self): method test_json_header_empty_body (line 403) | def test_json_header_empty_body(self): method test_isajax (line 411) | def test_isajax(self): method test_auth (line 418) | def test_auth(self): method test_remote_route (line 430) | def test_remote_route(self): method test_remote_addr (line 441) | def test_remote_addr(self): method test_user_defined_attributes (line 452) | def test_user_defined_attributes(self): class TestResponse (line 471) | class TestResponse(unittest.TestCase): method test_constructor_body (line 473) | def test_constructor_body(self): method test_constructor_status (line 480) | def test_constructor_status(self): method test_constructor_headerlist (line 493) | def test_constructor_headerlist(self): method test_wsgi_header_values (line 499) | def test_wsgi_header_values(self): method test_set_status (line 512) | def test_set_status(self): method test_content_type (line 588) | def test_content_type(self): method test_charset (line 593) | def test_charset(self): method test_set_cookie (line 601) | def test_set_cookie(self): method test_set_cookie_value_long_string (line 611) | def test_set_cookie_value_long_string(self): method test_set_cookie_name_long_string (line 615) | def test_set_cookie_name_long_string(self): method test_set_cookie_maxage (line 619) | def test_set_cookie_maxage(self): method test_set_cookie_expires (line 629) | def test_set_cookie_expires(self): method test_set_cookie_secure (line 639) | def test_set_cookie_secure(self): method test_set_cookie_httponly (line 648) | def test_set_cookie_httponly(self): method test_set_cookie_samesite (line 659) | def test_set_cookie_samesite(self): method test_clone_cookie (line 675) | def test_clone_cookie(self): method test_delete_cookie (line 683) | def test_delete_cookie(self): method test_set_header (line 691) | def test_set_header(self): method test_append_header (line 705) | def test_append_header(self): method test_delete_header (line 719) | def test_delete_header(self): method test_non_string_header (line 726) | def test_non_string_header(self): method test_prevent_control_characters_in_headers (line 735) | def test_prevent_control_characters_in_headers(self): method test_expires_header (line 757) | def test_expires_header(self): class TestRedirect (line 774) | class TestRedirect(unittest.TestCase): method assertRedirect (line 776) | def assertRedirect(self, target, result, query=None, status=303, **args): method test_absolute_path (line 792) | def test_absolute_path(self): method test_relative_path (line 805) | def test_relative_path(self): method test_sheme (line 832) | def test_sheme(self): method test_host_http_1_0 (line 838) | def test_host_http_1_0(self): method test_host_http_1_1 (line 847) | def test_host_http_1_1(self): method test_host_http_proxy (line 858) | def test_host_http_proxy(self): method test_specialchars (line 864) | def test_specialchars(self): method test_redirect_preserve_cookies (line 870) | def test_redirect_preserve_cookies(self): class TestWSGIHeaderDict (line 881) | class TestWSGIHeaderDict(unittest.TestCase): method setUp (line 882) | def setUp(self): method test_empty (line 886) | def test_empty(self): method test_native (line 889) | def test_native(self): method test_unicode (line 893) | def test_unicode(self): method test_dict (line 897) | def test_dict(self): FILE: test/test_exc.py class SomeError (line 4) | class SomeError(Exception): class TestAppException (line 7) | class TestAppException(ServerTestBase): method test_no_exc (line 9) | def test_no_exc(self): method test_memory_error (line 14) | def test_memory_error(self): method test_system_Exit (line 20) | def test_system_Exit(self): method test_other_error (line 26) | def test_other_error(self): method test_noncatched_error (line 32) | def test_noncatched_error(self): FILE: test/test_fileupload.py class TestFileUpload (line 10) | class TestFileUpload(unittest.TestCase): method test_name (line 11) | def test_name(self): method test_raw_filename (line 14) | def test_raw_filename(self): method test_content_type (line 17) | def test_content_type(self): method assertFilename (line 21) | def assertFilename(self, bad, good): method test_filename (line 25) | def test_filename(self): method test_preserve_case_issue_582 (line 40) | def test_preserve_case_issue_582(self): method test_save_buffer (line 43) | def test_save_buffer(self): method test_save_file (line 50) | def test_save_file(self): method test_save_overwrite_lock (line 57) | def test_save_overwrite_lock(self): method test_save_dir (line 61) | def test_save_dir(self): FILE: test/test_formsdict.py class TestFormsDict (line 7) | class TestFormsDict(unittest.TestCase): method test_attr_access (line 8) | def test_attr_access(self): method test_attr_missing (line 14) | def test_attr_missing(self): FILE: test/test_html_helper.py class TestHttpUtils (line 6) | class TestHttpUtils(unittest.TestCase): method test_accept_header (line 10) | def test_accept_header(self): FILE: test/test_importhook.py class TestImportHooks (line 6) | class TestImportHooks(unittest.TestCase): method make_module (line 8) | def make_module(self, name, **args): method test_direkt_import (line 14) | def test_direkt_import(self): method test_from_import (line 19) | def test_from_import(self): method test_data_import (line 24) | def test_data_import(self): method test_import_fail (line 29) | def test_import_fail(self): method test_ext_isfile (line 35) | def test_ext_isfile(self): FILE: test/test_jinja2.py class TestJinja2Template (line 8) | class TestJinja2Template(unittest.TestCase): method test_string (line 10) | def test_string(self): method test_file (line 15) | def test_file(self): method test_name (line 21) | def test_name(self): method test_notfound (line 27) | def test_notfound(self): method test_error (line 31) | def test_error(self): method test_inherit (line 35) | def test_inherit(self): method test_custom_filters (line 41) | def test_custom_filters(self): method test_custom_tests (line 48) | def test_custom_tests(self): method test_template_shortcut (line 57) | def test_template_shortcut(self): method test_view_decorator (line 61) | def test_view_decorator(self): FILE: test/test_mako.py class TestMakoTemplate (line 6) | class TestMakoTemplate(unittest.TestCase): method test_string (line 7) | def test_string(self): method test_file (line 12) | def test_file(self): method test_name (line 18) | def test_name(self): method test_notfound (line 24) | def test_notfound(self): method test_error (line 28) | def test_error(self): method test_inherit (line 32) | def test_inherit(self): method test_template_shortcut (line 42) | def test_template_shortcut(self): method test_view_decorator (line 46) | def test_view_decorator(self): FILE: test/test_mdict.py class TestMultiDict (line 4) | class TestMultiDict(unittest.TestCase): method test_isadict (line 5) | def test_isadict(self): method test_ismulti (line 24) | def test_ismulti(self): method test_isheader (line 32) | def test_isheader(self): method test_headergetbug (line 41) | def test_headergetbug(self): FILE: test/test_mount.py class TestAppMounting (line 6) | class TestAppMounting(ServerTestBase): method setUp (line 7) | def setUp(self): method test_mount_unicode_path_bug602 (line 16) | def test_mount_unicode_path_bug602(self): method test_mount_order_bug581 (line 22) | def test_mount_order_bug581(self): method test_mount (line 31) | def test_mount(self): method test_mount_meta (line 40) | def test_mount_meta(self): method test_no_slash_prefix (line 48) | def test_no_slash_prefix(self): method test_mount_no_plugins (line 58) | def test_mount_no_plugins(self): method test_mount_wsgi (line 69) | def test_mount_wsgi(self): method test_mount_cookie (line 81) | def test_mount_cookie(self): method test_mount_wsgi_ctype_bug (line 90) | def test_mount_wsgi_ctype_bug(self): method test_mount_json_bug (line 98) | def test_mount_json_bug(self): method test_mount_get_url (line 105) | def test_mount_get_url(self): class TestAppMerging (line 114) | class TestAppMerging(ServerTestBase): method setUp (line 115) | def setUp(self): method test_merge (line 123) | def test_merge(self): FILE: test/test_multipart.py class BaseMultipartTest (line 9) | class BaseMultipartTest(unittest.TestCase): method setUp (line 10) | def setUp(self): method reset (line 13) | def reset(self): method write (line 17) | def write(self, *lines): method parse (line 21) | def parse(self, ctype=None, clen=-1, **kwargs): method assertFile (line 30) | def assertFile(self, name, filename, ctype, data): method assertForm (line 40) | def assertForm(self, name, data): class TestHeaderParser (line 52) | class TestHeaderParser(BaseMultipartTest): method test_options_parser (line 54) | def test_options_parser(self): class TestMultipartParser (line 67) | class TestMultipartParser(BaseMultipartTest): method assertIterline (line 69) | def assertIterline(self, data, *expected, **options): method test_iterlines (line 74) | def test_iterlines(self): method test_iterlines_limit (line 77) | def test_iterlines_limit(self): method test_fuzzy_lineiter (line 81) | def test_fuzzy_lineiter(self): method test_big_file (line 103) | def test_big_file(self): method test_file_seek (line 129) | def test_file_seek(self): method test_unicode_value (line 141) | def test_unicode_value(self): method test_multiline_header (line 154) | def test_multiline_header(self): class TestBrokenMultipart (line 175) | class TestBrokenMultipart(BaseMultipartTest): method assertMPError (line 177) | def assertMPError(self, **ka): method test_big_boundary (line 180) | def test_big_boundary(self): method test_missing_content_type (line 183) | def test_missing_content_type(self): method test_unsupported_content_type (line 186) | def test_unsupported_content_type(self): method test_missing_boundary (line 189) | def test_missing_boundary(self): method test_no_terminator (line 192) | def test_no_terminator(self): method test_no_newline_after_content (line 198) | def test_no_newline_after_content(self): method test_no_newline_after_middle_content (line 204) | def test_no_newline_after_middle_content(self): method test_preamble_before_start_boundary (line 214) | def test_preamble_before_start_boundary(self): method test_no_start_boundary (line 224) | def test_no_start_boundary(self): method test_disk_limit (line 230) | def test_disk_limit(self): method test_mem_limit (line 236) | def test_mem_limit(self): method test_invalid_header (line 244) | def test_invalid_header(self): method test_content_length_to_small (line 251) | def test_content_length_to_small(self): method test_no_disposition_header (line 258) | def test_no_disposition_header(self): class TestWerkzeugExamples (line 694) | class TestWerkzeugExamples(BaseMultipartTest): method test_werkzeug_examples (line 695) | def test_werkzeug_examples(self): FILE: test/test_oorouting.py class TestRouter (line 17) | class TestRouter(object): method route_1 (line 25) | def route_1(self, msg): class TestRoutes (line 30) | class TestRoutes(unittest.TestCase): method test_route1 (line 31) | def test_route1(self): FILE: test/test_outputfilter.py class TestOutputFilter (line 16) | class TestOutputFilter(ServerTestBase): method test_bytes (line 19) | def test_bytes(self): method test_bytearray (line 23) | def test_bytearray(self): method test_tuple (line 27) | def test_tuple(self): method test_emptylist (line 31) | def test_emptylist(self): method test_none (line 35) | def test_none(self): method test_illegal (line 39) | def test_illegal(self): method test_error (line 44) | def test_error(self): method test_fatal_error (line 50) | def test_fatal_error(self): method test_file (line 55) | def test_file(self): method test_unicode (line 59) | def test_unicode(self): method test_json (line 78) | def test_json(self): method test_json_serialization_error (line 85) | def test_json_serialization_error(self): method test_json_HTTPResponse (line 96) | def test_json_HTTPResponse(self): method test_json_HTTPError (line 102) | def test_json_HTTPError(self): method test_generator_callback (line 109) | def test_generator_callback(self): method test_empty_generator_callback (line 117) | def test_empty_generator_callback(self): method test_error_in_generator_callback (line 125) | def test_error_in_generator_callback(self): method test_fatal_error_in_generator_callback (line 132) | def test_fatal_error_in_generator_callback(self): method test_httperror_in_generator_callback (line 139) | def test_httperror_in_generator_callback(self): method test_httpresponse_in_generator_callback (line 148) | def test_httpresponse_in_generator_callback(self): method test_unicode_generator_callback (line 154) | def test_unicode_generator_callback(self): method test_invalid_generator_callback (line 160) | def test_invalid_generator_callback(self): method test_iterator_with_close (line 167) | def test_iterator_with_close(self): method test_cookie (line 184) | def test_cookie(self): FILE: test/test_plugins.py class MyPlugin (line 8) | class MyPlugin(object): method __init__ (line 9) | def __init__(self): method setup (line 14) | def setup(self, app): method apply (line 17) | def apply(self, func, config): function my_decorator (line 25) | def my_decorator(func): class TestPluginManagement (line 31) | class TestPluginManagement(tools.ServerTestBase): method verify_installed (line 33) | def verify_installed(self, plugin, otype, **config): method test_install_plugin (line 39) | def test_install_plugin(self): method test_install_decorator (line 45) | def test_install_decorator(self): method test_install_non_plugin (line 50) | def test_install_non_plugin(self): method test_uninstall_by_instance (line 53) | def test_uninstall_by_instance(self): method test_uninstall_by_type (line 60) | def test_uninstall_by_type(self): method test_uninstall_by_name (line 67) | def test_uninstall_by_name(self): method test_uninstall_all (line 75) | def test_uninstall_all(self): method test_route_plugin (line 81) | def test_route_plugin(self): method test_plugin_oder (line 90) | def test_plugin_oder(self): method test_skip_by_instance (line 103) | def test_skip_by_instance(self): method test_skip_by_class (line 118) | def test_skip_by_class(self): method test_skip_by_name (line 127) | def test_skip_by_name(self): method test_skip_all (line 137) | def test_skip_all(self): method test_skip_nonlist (line 146) | def test_skip_nonlist(self): method test_json_plugin_catches_httpresponse (line 155) | def test_json_plugin_catches_httpresponse(self): class TestPluginAPI (line 167) | class TestPluginAPI(tools.ServerTestBase): method setUp (line 169) | def setUp(self): method test_callable (line 175) | def test_callable(self): method test_apply (line 184) | def test_apply(self): method test_instance_method_wrapper (line 196) | def test_instance_method_wrapper(self): method test_setup (line 205) | def test_setup(self): method test_close (line 212) | def test_close(self): FILE: test/test_resources.py class TestResourceManager (line 14) | class TestResourceManager(unittest.TestCase): method test_path_normalize (line 16) | def test_path_normalize(self): method test_path_create (line 22) | def test_path_create(self): method test_path_absolutize (line 35) | def test_path_absolutize(self): method test_path_unique (line 53) | def test_path_unique(self): method test_root_path (line 58) | def test_root_path(self): method test_path_order (line 74) | def test_path_order(self): method test_get (line 85) | def test_get(self): method test_open (line 93) | def test_open(self): FILE: test/test_route.py class TestReFlatten (line 8) | class TestReFlatten(unittest.TestCase): method test_re_flatten (line 10) | def test_re_flatten(self): class TestRoute (line 18) | class TestRoute(unittest.TestCase): method test_callback_inspection (line 21) | def test_callback_inspection(self): method test_callback_inspection_multiple_args (line 44) | def test_callback_inspection_multiple_args(self): method test_callback_inspection_newsig (line 66) | def test_callback_inspection_newsig(self): method test_unwrap_wrapped (line 72) | def test_unwrap_wrapped(self): method test_unwrap_closure (line 83) | def test_unwrap_closure(self): method test_unwrap_closure_callable (line 98) | def test_unwrap_closure_callable(self): method test_unwrap_method (line 108) | def test_unwrap_method(self): function _null_decorator (line 119) | def _null_decorator(func, update_wrapper=True): FILE: test/test_router.py class TestRouter (line 8) | class TestRouter(unittest.TestCase): method setUp (line 11) | def setUp(self): method add (line 14) | def add(self, path, target, method='GET', **ka): method match (line 19) | def match(self, path, method='GET'): method assertMatches (line 25) | def assertMatches(self, rule, url, method='GET', **args): method testBasic (line 31) | def testBasic(self): method testNewSyntax (line 43) | def testNewSyntax(self): method testUnicode (line 55) | def testUnicode(self): method testValueErrorInFilter (line 58) | def testValueErrorInFilter(self): method testIntFilter (line 64) | def testIntFilter(self): method testFloatFilter (line 68) | def testFloatFilter(self): method testPathFilter (line 77) | def testPathFilter(self): method testAnonWildcard (line 81) | def testAnonWildcard(self): method testWildcardNames (line 86) | def testWildcardNames(self): method testParentheses (line 90) | def testParentheses(self): method testErrorInPattern (line 96) | def testErrorInPattern(self): method testBuild (line 100) | def testBuild(self): method testBuildAnon (line 113) | def testBuildAnon(self): method testBuildFilter (line 126) | def testBuildFilter(self): method test_dynamic_before_static_any (line 136) | def test_dynamic_before_static_any(self): method test_any_static_before_dynamic (line 143) | def test_any_static_before_dynamic(self): method test_dynamic_any_if_method_exists (line 150) | def test_dynamic_any_if_method_exists(self): method test_lots_of_routes (line 158) | def test_lots_of_routes(self): class TestRouterInCGIMode (line 164) | class TestRouterInCGIMode(TestRouter): FILE: test/test_securecookies.py class TestSignedCookies (line 9) | class TestSignedCookies(unittest.TestCase): method setUp (line 10) | def setUp(self): method tear_down (line 16) | def tear_down(self): method get_pairs (line 19) | def get_pairs(self): method set_pairs (line 25) | def set_pairs(self, pairs): method testValid (line 29) | def testValid(self): method testWrongKey (line 36) | def testWrongKey(self): class TestSignedCookiesWithPickle (line 44) | class TestSignedCookiesWithPickle(TestSignedCookies): method setUp (line 45) | def setUp(self): method testValid (line 50) | def testValid(self): method testWrongKey (line 54) | def testWrongKey(self): FILE: test/test_sendfile.py class TestDateParser (line 21) | class TestDateParser(unittest.TestCase): method test_rfc1123 (line 22) | def test_rfc1123(self): method test_rfc850 (line 28) | def test_rfc850(self): method test_asctime (line 35) | def test_asctime(self): method test_bad (line 42) | def test_bad(self): class TestSendFile (line 47) | class TestSendFile(unittest.TestCase): method setUp (line 48) | def setUp(self): method test_valid (line 55) | def test_valid(self): method test_invalid (line 60) | def test_invalid(self): method test_file_not_readable (line 66) | def test_file_not_readable(self): method test_mime (line 80) | def test_mime(self): method test_mime_gzip (line 91) | def test_mime_gzip(self): method test_ims (line 103) | def test_ims(self): method test_ims_empty (line 113) | def test_ims_empty(self): method test_etag (line 118) | def test_etag(self): method test_download (line 137) | def test_download(self): method test_range (line 149) | def test_range(self): method test_range_parser (line 158) | def test_range_parser(self): method test_custom_headers (line 165) | def test_custom_headers(self): FILE: test/test_stpl.py class TestSimpleTemplate (line 10) | class TestSimpleTemplate(unittest.TestCase): method assertRenders (line 11) | def assertRenders(self, tpl, to, *args, **vars): method test_string (line 16) | def test_string(self): method test_self_as_variable_name (line 20) | def test_self_as_variable_name(self): method test_file (line 23) | def test_file(self): method test_name (line 28) | def test_name(self): method test_unicode (line 33) | def test_unicode(self): method test_unicode_code (line 37) | def test_unicode_code(self): method test_import (line 43) | def test_import(self): method test_data (line 48) | def test_data(self): method test_htmlutils_quote (line 60) | def test_htmlutils_quote(self): method test_escape (line 63) | def test_escape(self): method test_noescape (line 67) | def test_noescape(self): method test_noescape_setting (line 71) | def test_noescape_setting(self): method test_blocks (line 79) | def test_blocks(self): method test_elsebug (line 88) | def test_elsebug(self): method test_commentbug (line 93) | def test_commentbug(self): method test_multiline (line 97) | def test_multiline(self): method test_newline_in_parameterlist (line 101) | def test_newline_in_parameterlist(self): method test_dedentbug (line 105) | def test_dedentbug(self): method test_onelinebugs (line 116) | def test_onelinebugs(self): method test_onelineblocks (line 135) | def test_onelineblocks(self): method test_escaped_codelines (line 141) | def test_escaped_codelines(self): method test_nobreak (line 146) | def test_nobreak(self): method test_nonobreak (line 150) | def test_nonobreak(self): method test_include (line 154) | def test_include(self): method test_rebase (line 160) | def test_rebase(self): method test_get (line 167) | def test_get(self): method test_setdefault (line 171) | def test_setdefault(self): method test_defnied (line 176) | def test_defnied(self): method test_notfound (line 180) | def test_notfound(self): method test_error (line 184) | def test_error(self): method test_winbreaks (line 189) | def test_winbreaks(self): method test_winbreaks_end_bug (line 193) | def test_winbreaks_end_bug(self): method test_commentonly (line 200) | def test_commentonly(self): method test_template_shortcut (line 205) | def test_template_shortcut(self): method test_view_decorator (line 209) | def test_view_decorator(self): method test_view_decorator_issue_407 (line 215) | def test_view_decorator_issue_407(self): method test_global_config (line 226) | def test_global_config(self): method test_bug_no_whitespace_before_stmt (line 231) | def test_bug_no_whitespace_before_stmt(self): method test_bug_block_keywords_eat_prefixed_code (line 234) | def test_bug_block_keywords_eat_prefixed_code(self): class TestSTPLDir (line 241) | class TestSTPLDir(unittest.TestCase): method fix_ident (line 242) | def fix_ident(self, string): method assertRenders (line 252) | def assertRenders(self, source, result, syntax=None, *args, **vars): method test_multiline_block (line 263) | def test_multiline_block(self): method test_multiline_ignore_eob_in_string (line 277) | def test_multiline_ignore_eob_in_string(self): method test_multiline_find_eob_in_comments (line 289) | def test_multiline_find_eob_in_comments(self): method test_multiline_indention (line 302) | def test_multiline_indention(self): method test_multiline_eob_after_end (line 316) | def test_multiline_eob_after_end(self): method test_multiline_eob_in_single_line_code (line 327) | def test_multiline_eob_in_single_line_code(self): method test_multiline_strings_in_code_line (line 337) | def test_multiline_strings_in_code_line(self): method test_multiline_comprehensions_in_code_line (line 348) | def test_multiline_comprehensions_in_code_line(self): method test_end_keyword_on_same_line (line 361) | def test_end_keyword_on_same_line(self): FILE: test/test_wsgi.py class TestWsgi (line 7) | class TestWsgi(ServerTestBase): method test_get (line 10) | def test_get(self): method test_post (line 18) | def test_post(self): method test_headget (line 26) | def test_headget(self): method test_request_attrs (line 41) | def test_request_attrs(self): method get204 (line 52) | def get204(self): method get304 (line 61) | def get304(self): method test_anymethod (line 72) | def test_anymethod(self): method test_500 (line 88) | def test_500(self): method test_500_unicode (line 94) | def test_500_unicode(self): method test_utf8_url (line 99) | def test_utf8_url(self): method test_utf8_header (line 105) | def test_utf8_header(self): method test_utf8_404 (line 114) | def test_utf8_404(self): method test_401 (line 117) | def test_401(self): method test_303 (line 129) | def test_303(self): method test_generator_callback (line 144) | def test_generator_callback(self): method test_cookie (line 158) | def test_cookie(self): class TestErrorHandling (line 174) | class TestErrorHandling(ServerTestBase): method test_error_routing (line 175) | def test_error_routing(self): class CloseableBody (line 201) | class CloseableBody: method __init__ (line 203) | def __init__(self, body): method __iter__ (line 207) | def __iter__(self): method close (line 210) | def close(self): class TestCloseable (line 214) | class TestCloseable(ServerTestBase): method setUp (line 217) | def setUp(self): method closeable (line 220) | def closeable(self, body=["OK"]): method assertClosed (line 223) | def assertClosed(self, body, open_args=None): method test_direct (line 231) | def test_direct(self): class TestRouteDecorator (line 246) | class TestRouteDecorator(ServerTestBase): method test_decorators (line 247) | def test_decorators(self): method test_single_path (line 256) | def test_single_path(self): method test_path_list (line 262) | def test_path_list(self): method test_no_path (line 269) | def test_no_path(self): method test_no_params_at_all (line 275) | def test_no_params_at_all(self): method test_method (line 281) | def test_method(self): method test_method_list (line 288) | def test_method_list(self): method test_apply (line 295) | def test_apply(self): method test_apply_list (line 307) | def test_apply_list(self): method test_hooks (line 323) | def test_hooks(self): method test_after_request_sees_HTTPError_response (line 336) | def test_after_request_sees_HTTPError_response(self): method test_after_request_hooks_run_after_exception (line 353) | def test_after_request_hooks_run_after_exception(self): method test_after_request_hooks_run_after_exception_in_before_hook (line 373) | def test_after_request_hooks_run_after_exception_in_before_hook(self): method test_after_request_hooks_may_rise_response_exception (line 393) | def test_after_request_hooks_may_rise_response_exception(self): method test_after_response_hook_can_set_headers (line 410) | def test_after_response_hook_can_set_headers(self): method test_template (line 431) | def test_template(self): method test_template_opts (line 436) | def test_template_opts(self): method test_name (line 441) | def test_name(self): method test_callback (line 446) | def test_callback(self): class TestDecorators (line 456) | class TestDecorators(ServerTestBase): method test_view (line 459) | def test_view(self): method test_view_error (line 470) | def test_view_error(self): method test_truncate_body (line 480) | def test_truncate_body(self): method test_routebuild (line 492) | def test_routebuild(self): method test_autoroute (line 506) | def test_autoroute(self): class TestAppShortcuts (line 521) | class TestAppShortcuts(ServerTestBase): method setUp (line 522) | def setUp(self): method testWithStatement (line 525) | def testWithStatement(self): method assertWraps (line 533) | def assertWraps(self, test, other): method test_module_shortcuts (line 536) | def test_module_shortcuts(self): method test_module_shortcuts_with_different_name (line 543) | def test_module_shortcuts_with_different_name(self): FILE: test/tools.py function warn (line 19) | def warn(msg): function tobs (line 23) | def tobs(data): class chdir (line 28) | class chdir(object): method __init__ (line 29) | def __init__(self, dir): method __enter__ (line 35) | def __enter__(self): method __exit__ (line 38) | def __exit__(self, exc_type, exc_val, tb): class assertWarn (line 42) | class assertWarn(object): method __init__ (line 43) | def __init__(self, text): method __call__ (line 46) | def __call__(self, func): function api (line 58) | def api(introduced, deprecated=None, removed=None): function wsgistr (line 78) | def wsgistr(s): class ServerTestBase (line 81) | class ServerTestBase(unittest.TestCase): method setUp (line 82) | def setUp(self): method urlopen (line 89) | def urlopen(self, path, method='GET', post='', env=None, crash=None): method postmultipart (line 123) | def postmultipart(self, path, fields, files): method tearDown (line 127) | def tearDown(self): method assertStatus (line 130) | def assertStatus(self, code, route='/', **kargs): method assertBody (line 133) | def assertBody(self, body, route='/', **kargs): method assertInBody (line 136) | def assertInBody(self, body, route='/', **kargs): method assertHeader (line 141) | def assertHeader(self, name, value, route='/', **kargs): method assertHeaderAny (line 144) | def assertHeaderAny(self, name, route='/', **kargs): method assertInError (line 147) | def assertInError(self, search, route='/', **kargs): function multipart_environ (line 153) | def multipart_environ(fields, files):