

def test_interactive_param_p(self):
    result = core.exe('echo 1', 'ip')
    self.assertEqual(result.sreadline(), '1')
    self.assertRaises(StopIteration, result.sreadline)
    self.assertEqual(len(self.stdout_mock.lines), 1)
    self.assertEqual(self.stdout_mock.lines[0], '1')
    self.assertEqual(len(self.stderr_mock.lines), 0)

dataset/ETHPy150Open lamerman/shellpy/shellpython/tests/test_unix_core.py TestExecute.test_interactive_param_p/original