Source code
Revision control
Copy as Markdown
Other Tools
#!/usr/bin/env python
import mozunit
import pytest
from mozrunner import RunnerNotStartedError
def test_errors_before_start(runner):
with pytest.raises(RunnerNotStartedError):
runner.is_running()
with pytest.raises(RunnerNotStartedError):
runner.returncode
with pytest.raises(RunnerNotStartedError):
runner.wait()
if __name__ == "__main__":
mozunit.main()