Debian Codegraph @

examples/barebox/test_state.py

raw symbols SCIP
1 import pytest
2
3
4 def test_state(command):
5 stdout, stderr, returncode = command.run("state")
6 if returncode == 127:
7 pytest.skip("state command not available")
8 assert returncode == 0
9 assert not stderr
10 assert stdout[0] == "registered state instances:"
11 assert len(stdout) > 1