MCPcopy Index your code
hub / github.com/python/cpython / test_repr

Method test_repr

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

Source from the content-addressed store, hash-verified

5463 self.assertEqual(type(C.__dict__), type(B.__dict__))
5464
5465 def test_repr(self):
5466 # Testing mappingproxy.__repr__.
5467 # We can't blindly compare with the repr of another dict as ordering
5468 # of keys and values is arbitrary and may differ.
5469 r = repr(self.C.__dict__)
5470 self.assertStartsWith(r, 'mappingproxy(')
5471 self.assertEndsWith(r, ')')
5472 for k, v in self.C.__dict__.items():
5473 self.assertIn('{!r}: {!r}'.format(k, v), r)
5474
5475
5476class AAAPTypesLongInitTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected