(self: typing.Any)
| 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 |