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

Method _testpoint

Lib/test/multibytecodec_support.py:364–368  ·  view source on GitHub ↗
(self, csetch, unich)

Source from the content-addressed store, hash-verified

362 self._testpoint(*mapping)
363
364 def _testpoint(self, csetch, unich):
365 if (csetch, unich) not in self.pass_enctest:
366 self.assertEqual(unich.encode(self.encoding), csetch)
367 if (csetch, unich) not in self.pass_dectest:
368 self.assertEqual(str(csetch, self.encoding), unich)
369
370 def test_errorhandle(self):
371 for source, scheme, expected in self.codectests:

Callers 3

Calls 3

strFunction · 0.85
assertEqualMethod · 0.45
encodeMethod · 0.45

Tested by 1