(pool)
| 558 | return res + 1 |
| 559 | |
| 560 | async def test(pool): |
| 561 | async with pool.acquire() as con: |
| 562 | self.assertEqual(await con.fetchval('SELECT 1'), 2) |
| 563 | self.assertEqual(await con.foo(), 42) |
| 564 | self.assertTrue(isinstance(con, MyConnection)) |
| 565 | self.assertEqual(con._con._config.statement_cache_size, 3) |
| 566 | cons.add(con) |
| 567 | |
| 568 | async with self.create_pool( |
| 569 | database='postgres', init_size=10, min_size=1, max_size=10, |