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

Method check_output

Lib/test/test_dis.py:2555–2560  ·  view source on GitHub ↗
(self, source, expect, *flags)

Source from the content-addressed store, hash-verified

2553 return self.text_normalize(output.getvalue())
2554
2555 def check_output(self, source, expect, *flags):
2556 with self.subTest(source=source, flags=flags):
2557 self.set_source(source)
2558 res = self.invoke_dis(*flags)
2559 expect = self.text_normalize(expect)
2560 self.assertListEqual(res.splitlines(), expect.splitlines())
2561
2562 def test_invocation(self):
2563 # test various combinations of parameters

Callers 15

test_show_cacheMethod · 0.95
test_show_offsetsMethod · 0.95
test_show_positionsMethod · 0.95
test_specialized_codeMethod · 0.95
test_sys_xoptionsMethod · 0.45
test_env_varMethod · 0.45
test_check_outputMethod · 0.45

Calls 6

set_sourceMethod · 0.95
invoke_disMethod · 0.95
text_normalizeMethod · 0.95
assertListEqualMethod · 0.80
subTestMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected