MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_output

Method check_output

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

Source from the content-addressed store, hash-verified

3465 return stdout.getvalue().strip()
3466
3467 def check_output(self, source, expect, *flags):
3468 self.set_source(source)
3469 res = self.invoke_ast(*flags)
3470 expect = self.text_normalize(expect)
3471 self.assertEqual(res, expect)
3472
3473 @support.requires_resource('cpu')
3474 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