aboutsummaryrefslogtreecommitdiff
path: root/tools/addon-sdk-1.12/python-lib/cuddlefish/tests/test_runner.py
blob: 26583abd19f793cc6b50ac2a23577ebf84f7353d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


def xulrunner_app_runner_doctests():
    """
    >>> import sys
    >>> from cuddlefish import runner
    >>> runner.XulrunnerAppRunner(binary='foo')
    Traceback (most recent call last):
    ...
    Exception: Binary path does not exist foo

    >>> runner.XulrunnerAppRunner(binary=sys.executable)
    Traceback (most recent call last):
    ...
    ValueError: application.ini not found in cmdargs

    >>> runner.XulrunnerAppRunner(binary=sys.executable,
    ...                         cmdargs=['application.ini'])
    Traceback (most recent call last):
    ...
    ValueError: file does not exist: 'application.ini'
    """

    pass