Test that Record works with isinstance.
(self)
| 339 | self.assertEqual(list(r.keys()), [p[0] for p in desc]) |
| 340 | |
| 341 | async def test_record_isinstance(self): |
| 342 | """Test that Record works with isinstance.""" |
| 343 | r = await self.con.fetchrow('SELECT 1 as a, 2 as b') |
| 344 | self.assertTrue(isinstance(r, asyncpg.Record)) |
| 345 | |
| 346 | async def test_record_no_new(self): |
| 347 | """Instances of Record cannot be directly created.""" |