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

Method check_output

Lib/test/test_ast/test_ast.py:3441–3445  ·  view source on GitHub ↗
(self, source, expect, *flags)

Source from the content-addressed store, hash-verified

3439 return stdout.getvalue().strip()
3440
3441 def check_output(self, source, expect, *flags):
3442 self.set_source(source)
3443 res = self.invoke_ast(*flags)
3444 expect = self.text_normalize(expect)
3445 self.assertEqual(res, expect)
3446
3447 @support.requires_resource('cpu')
3448 def test_invocation(self):

Callers 15

test_exec_mode_flagMethod · 0.95
test_single_mode_flagMethod · 0.95
test_eval_mode_flagMethod · 0.95
test_indent_flagMethod · 0.95
test_no_optimize_flagMethod · 0.95
test_optimize_flagMethod · 0.95
test_show_empty_flagMethod · 0.95
test_execute_zip2Method · 0.45

Calls 4

set_sourceMethod · 0.95
invoke_astMethod · 0.95
text_normalizeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected