MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_record_keys

Method test_record_keys

tests/test_record.py:157–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155 repr(vv).startswith('<asyncpg.protocol.record.RecordIterator '))
156
157 def test_record_keys(self):
158 r = Record(R_AB, (42, 43))
159 vv = r.keys()
160 self.assertEqual(tuple(vv), ('a', 'b'))
161 self.assertEqual(list(Record(None, (42, 43)).keys()), [])
162
163 def test_record_items(self):
164 r = Record(R_AB, (42, 43))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected