MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_repr

Method test_repr

Lib/test/test_descr.py:5227–5235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5225 self.assertEqual(type(C.__dict__), type(B.__dict__))
5226
5227 def test_repr(self):
5228 # Testing mappingproxy.__repr__.
5229 # We can't blindly compare with the repr of another dict as ordering
5230 # of keys and values is arbitrary and may differ.
5231 r = repr(self.C.__dict__)
5232 self.assertStartsWith(r, 'mappingproxy(')
5233 self.assertEndsWith(r, ')')
5234 for k, v in self.C.__dict__.items():
5235 self.assertIn('{!r}: {!r}'.format(k, v), r)
5236
5237
5238class AAAPTypesLongInitTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 6

reprFunction · 0.85
assertInMethod · 0.80
assertStartsWithMethod · 0.45
assertEndsWithMethod · 0.45
itemsMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected