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

Method test_record_iter

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

Source from the content-addressed store, hash-verified

142 repr(Record(R_A, (Key(),)))
143
144 def test_record_iter(self):
145 r = Record(R_AB, (42, 43))
146 with self.checkref(r):
147 self.assertEqual(iter(r).__length_hint__(), 2)
148 self.assertEqual(tuple(r), (42, 43))
149
150 def test_record_values(self):
151 r = Record(R_AB, (42, 43))

Callers

nothing calls this directly

Calls 1

checkrefMethod · 0.95

Tested by

no test coverage detected