test_runner.py 841 B

123456789101112131415161718192021222324252627
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. def xulrunner_app_runner_doctests():
  5. """
  6. >>> import sys
  7. >>> from cuddlefish import runner
  8. >>> runner.XulrunnerAppRunner(binary='foo')
  9. Traceback (most recent call last):
  10. ...
  11. Exception: Binary path does not exist foo
  12. >>> runner.XulrunnerAppRunner(binary=sys.executable)
  13. Traceback (most recent call last):
  14. ...
  15. ValueError: application.ini not found in cmdargs
  16. >>> runner.XulrunnerAppRunner(binary=sys.executable,
  17. ... cmdargs=['application.ini'])
  18. Traceback (most recent call last):
  19. ...
  20. ValueError: file does not exist: 'application.ini'
  21. """
  22. pass