def test_err(self):
try:
-> cmdexec('echoqweqwe123 hallo')
raise AssertionError, "command succeeded but shouldn't"
except cmdexec.Error, e:
assert hasattr(e, 'err')
assert hasattr(e, 'out')
assert e.err or e.out