def test_normal_stdin(self, command, pipe_input, expected): proc = SubprocessRunner(command).popen(PIPE) ret_stdout, ret_stderr = proc.communicate(input=pipe_input) assert is_not_null_string(ret_stdout) assert is_null_string(ret_stderr) assert proc.returncode == expected
def test_normal(self, command, environ, expected): proc = SubprocessRunner(command).popen(env=environ) ret_stdout, ret_stderr = proc.communicate() assert is_not_null_string(ret_stdout) assert is_null_string(ret_stderr) assert proc.returncode == expected