(self)
| 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' |
nothing calls this directly
no test coverage detected