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

Class Key

tests/test_record.py:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 self.assertEqual(repr(Record(R_AB, (42,))), '<Record a=42>')
131
132 class Key:
133 def __str__(self):
134 1 / 0
135
136 def __repr__(self):
137 1 / 0
138
139 with self.assertRaises(ZeroDivisionError):
140 repr(Record({Key(): 0}, (42,)))

Callers 1

test_record_reprMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_record_reprMethod · 0.68