Test that Record works with isinstance.
(self)
| 349 | self.assertEqual(list(r.keys()), [p[0] for p in desc]) |
| 350 | |
| 351 | async def test_record_isinstance(self): |
| 352 | """Test that Record works with isinstance.""" |
| 353 | r = await self.con.fetchrow('SELECT 1 as a, 2 as b') |
| 354 | self.assertTrue(isinstance(r, asyncpg.Record)) |
| 355 | |
| 356 | async def test_record_no_new(self): |
| 357 | """Instances of Record cannot be directly created.""" |