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')
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")
def main(args=sys.argv[1:]): try: config, browser_config = get_configs() except ConfigurationError, exc: sys.exit("ERROR: %s" % exc)