Debian Codegraph @

testing/mozbase/mozrunner/tests/test_states.py

raw
1 #!/usr/bin/env python
2
3 import mozunit
4 import pytest
5 from mozrunner import RunnerNotStartedError
6
7
8 def test_errors_before_start(runner):
9 """Bug 965714: Not started errors before start() is called"""
10
11 with pytest.raises(RunnerNotStartedError):
12 runner.is_running()
13
14 with pytest.raises(RunnerNotStartedError):
15 runner.returncode
16
17 with pytest.raises(RunnerNotStartedError):
18 runner.wait()
19
20
21 if __name__ == "__main__":
22 mozunit.main()