MCPcopy
hub / github.com/tornadoweb/tornado / gen_root

Method gen_root

tornado/test/gen_test.py:1062–1065  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1060
1061 @gen.coroutine
1062 def gen_root(self, x):
1063 ctx_var.set(x)
1064 yield
1065 yield self.inner(x)
1066
1067 async def inner(self, x):
1068 self.assertEqual(ctx_var.get(), x)

Callers 1

test_propagateMethod · 0.95

Calls 2

innerMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected