raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\cmd result in shell:\n{}'.format(''.join(cmd),real.stdout,std_stdout))
# check standard error
ifstd_stderr:
raiseAssertionError('The standard error of the command "{}" shouldbe empty but contains:\n{}'.format(std_stderr))
raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\cmd result in shell:\n{}'.format(''.join(cmd),real.stderr,std_stderr))
# do not check if stdout is empty because it will contain return code...