(pool)
| 634 | return 1 |
| 635 | |
| 636 | async def test_execute_with_arg(pool): |
| 637 | i = random.randint(0, 20) |
| 638 | await asyncio.sleep(random.random() / 100) |
| 639 | r = await pool.execute('SELECT generate_series(0, $1)', i) |
| 640 | self.assertEqual(r, 'SELECT {}'.format(i + 1)) |
| 641 | return 1 |
| 642 | |
| 643 | async def run(N, meth): |
| 644 | async with self.create_pool(database='postgres', |