コード例 #1
0
ファイル: test_config.py プロジェクト: miriambudayr/gecko-dev
def test_get_configs(get_config_mock, get_browser_config_mock):
    # unpacks in right order
    get_config_mock.return_value = 'first'
    get_browser_config_mock.return_value = 'second'

    first, second = get_configs()
    assert (first, second) == ('first', 'second')
コード例 #2
0
ファイル: test_config.py プロジェクト: luke-chang/gecko-1
def test_get_configs(get_config_mock, get_browser_config_mock):
    # unpacks in right order
    get_config_mock.return_value = 'first'
    get_browser_config_mock.return_value = 'second'

    first, second = get_configs()
    assert (first, second) == ('first', 'second')
コード例 #3
0
ファイル: test_config.py プロジェクト: Floflis/gecko-b2g
def test_get_configs(get_config_mock, get_browser_config_mock):
    # unpacks in right order
    get_config_mock.return_value = "first"
    get_browser_config_mock.return_value = "second"

    first, second = get_configs()
    assert (first, second) == ("first", "second")
コード例 #4
0
def main(args=sys.argv[1:]):
    try:
        config, browser_config = get_configs()
    except ConfigurationError, exc:
        sys.exit("ERROR: %s" % exc)
コード例 #5
0
ファイル: run_tests.py プロジェクト: linclark/gecko-dev
def main(args=sys.argv[1:]):
    try:
        config, browser_config = get_configs()
    except ConfigurationError, exc:
        sys.exit("ERROR: %s" % exc)