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

Method test_generator

python/python3/tornado/test/concurrent_test.py:127–133  ·  view source on GitHub ↗
(self: typing.Any)

Source from the content-addressed store, hash-verified

125 self.assertRaisesRegex(CapError, "already capitalized", future.result) # type: ignore
126
127 def test_generator(self: typing.Any):
128 @gen.coroutine
129 def f():
130 result = yield self.client.capitalize("hello")
131 self.assertEqual(result, "HELLO")
132
133 self.io_loop.run_sync(f)
134
135 def test_generator_error(self: typing.Any):
136 @gen.coroutine

Callers

nothing calls this directly

Calls 1

run_syncMethod · 0.80

Tested by

no test coverage detected