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

Method _test

Lib/test/test_clinic.py:943–951  ·  view source on GitHub ↗
(self, input, output)

Source from the content-addressed store, hash-verified

941
942class ClinicBlockParserTest(TestCase):
943 def _test(self, input, output):
944 language = CLanguage(None)
945
946 blocks = list(BlockParser(input, language))
947 writer = BlockPrinter(language)
948 for block in blocks:
949 writer.print_block(block)
950 output = writer.f.getvalue()
951 assert output == input, "output != input!\n\noutput " + repr(output) + "\n\n input " + repr(input)
952
953 def round_trip(self, input):
954 return self._test(input, input)

Callers 1

round_tripMethod · 0.95

Calls 6

print_blockMethod · 0.95
CLanguageClass · 0.90
BlockParserClass · 0.90
BlockPrinterClass · 0.90
listClass · 0.85
getvalueMethod · 0.45

Tested by

no test coverage detected