def test_cmd1_fail_run_pipe_cmd(self): self.assertEqual("[Errno 2] No such file or directory", run_pipe_cmd(["notreal"], ["echo", "'test'"])['err'])
def test_success_run_pipe_cmd(self): self.assertEqual("'test'\n", run_pipe_cmd(["echo", "'test'"], ["grep", "test"])['out'])