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

Method test_check_output_input_arg

Lib/test/test_subprocess.py:1846–1851  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1844 self.assertIn(b'PEAR', cp.stdout)
1845
1846 def test_check_output_input_arg(self):
1847 # check_output() can be called with input set to a string
1848 cp = self.run_python(
1849 "import sys; sys.stdout.write(sys.stdin.read().upper())",
1850 input=b'pear', stdout=subprocess.PIPE)
1851 self.assertIn(b'PEAR', cp.stdout)
1852
1853 def test_check_output_stdin_with_input_arg(self):
1854 # run() refuses to accept 'stdin' with 'input'

Callers

nothing calls this directly

Calls 2

run_pythonMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected