massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / tornado / testing.pyi
1 from typing import Any\r
2 import unittest\r
3 import logging\r
4 \r
5 AsyncHTTPClient = ...  # type: Any\r
6 gen = ...  # type: Any\r
7 HTTPServer = ...  # type: Any\r
8 IOLoop = ...  # type: Any\r
9 netutil = ...  # type: Any\r
10 SimpleAsyncHTTPClient = ...  # type: Any\r
11 \r
12 def get_unused_port(): ...\r
13 def bind_unused_port(): ...\r
14 \r
15 class AsyncTestCase(unittest.TestCase):\r
16     def __init__(self, *args, **kwargs): ...\r
17     io_loop = ...  # type: Any\r
18     def setUp(self): ...\r
19     def tearDown(self): ...\r
20     def get_new_ioloop(self): ...\r
21     def run(self, result=None): ...\r
22     def stop(self, _arg=None, **kwargs): ...\r
23     def wait(self, condition=None, timeout=5): ...\r
24 \r
25 class AsyncHTTPTestCase(AsyncTestCase):\r
26     http_client = ...  # type: Any\r
27     http_server = ...  # type: Any\r
28     def setUp(self): ...\r
29     def get_http_client(self): ...\r
30     def get_http_server(self): ...\r
31     def get_app(self): ...\r
32     def fetch(self, path, **kwargs): ...\r
33     def get_httpserver_options(self): ...\r
34     def get_http_port(self): ...\r
35     def get_protocol(self): ...\r
36     def get_url(self, path): ...\r
37     def tearDown(self): ...\r
38 \r
39 class AsyncHTTPSTestCase(AsyncHTTPTestCase):\r
40     def get_http_client(self): ...\r
41     def get_httpserver_options(self): ...\r
42     def get_ssl_options(self): ...\r
43     def get_protocol(self): ...\r
44 \r
45 def gen_test(f): ...\r
46 \r
47 class LogTrapTestCase(unittest.TestCase):\r
48     def run(self, result=None): ...\r
49 \r
50 class ExpectLog(logging.Filter):\r
51     logger = ...  # type: Any\r
52     regex = ...  # type: Any\r
53     required = ...  # type: Any\r
54     matched = ...  # type: Any\r
55     def __init__(self, logger, regex, required=True): ...\r
56     def filter(self, record): ...\r
57     def __enter__(self): ...\r
58     def __exit__(self, typ, value, tb): ...\r
59 \r
60 def main(**kwargs): ...\r