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:231–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

229 self.assertIn(b'PEAR', output)
230
231 def test_check_output_input_arg(self):
232 # check_output() can be called with input set to a string
233 output = subprocess.check_output(
234 [sys.executable, "-c",
235 "import sys; sys.stdout.write(sys.stdin.read().upper())"],
236 input=b'pear')
237 self.assertIn(b'PEAR', output)
238
239 def test_check_output_input_none(self):
240 """input=None has a legacy meaning of input='' on check_output."""

Callers

nothing calls this directly

Calls 2

assertInMethod · 0.80
check_outputMethod · 0.45

Tested by

no test coverage detected