MCPcopy
hub / github.com/MagicStack/asyncpg / test_record_isinstance

Method test_record_isinstance

tests/test_record.py:341–344  ·  view source on GitHub ↗

Test that Record works with isinstance.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

fetchrowMethod · 0.45

Tested by

no test coverage detected