Debian Codegraph @

examples/shell/test_shell.py

raw symbols SCIP
1 def test_shell(command):
2 stdout, stderr, returncode = command.run("cat /proc/version")
3 assert returncode == 0
4 assert stdout
5 assert not stderr
6 assert "Linux" in stdout[0]
7
8 stdout, stderr, returncode = command.run("false")
9 assert returncode != 0
10 assert not stdout
11 assert not stderr