def twill_patched_go(browser, original_go):
    def twill_go_with_relative_paths(uri, *args, **kwargs):
        if not uri.startswith("http"):
            base = get_live_server_path()
            if uri.startswith("/"):
                base = base.rstrip("/")
            uri = "%s%s" % (base, uri)
        response = original_go(uri, *args, **kwargs)
        if browser.result.get_http_code() == 500:
            raise extract_django_traceback(twill=browser)
        else:
            return response
    return twill_go_with_relative_paths
Connect to the database
dataset/ETHPy150Open Almad/django-sane-testing/djangosanetesting/utils.py/twill_patched_go--crossover with--dataset/ETHPy150Open perseas/Pyrseas/pyrseas/lib/dbutils.py/PostgresDb.connect