MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_app

Method get_app

python/python3/tornado/test/process_test.py:24–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22@skipIfNonUnix
23class ProcessTest(unittest.TestCase):
24 def get_app(self):
25 class ProcessHandler(RequestHandler):
26 def get(self):
27 if self.get_argument("exit", None):
28 # must use os._exit instead of sys.exit so unittest's
29 # exception handler doesn't catch it
30 os._exit(int(self.get_argument("exit")))
31 if self.get_argument("signal", None):
32 os.kill(os.getpid(), int(self.get_argument("signal")))
33 self.write(str(os.getpid()))
34
35 return Application([("/", ProcessHandler)])
36
37 def tearDown(self):
38 if task_id() is not None:

Callers 1

fMethod · 0.95

Calls 1

ApplicationClass · 0.90

Tested by

no test coverage detected