9
9
out = cmdexec('echo hallo')
10
10
assert out.strip() == 'hallo'
12
13
def test_simple_newline(self):
14
15
out = cmdexec(r"""%s -c "print ('hello')" """ % sys.executable)
17
19
def test_simple_error(self):
18
20
py.test.raises (cmdexec.Error, cmdexec, 'exit 1')