

def go(self, url, args=None, kwargs=None, default=None):
    assert (not ((args or kwargs) and (default == False)))
    try:
        url = reverse(url, args=args, kwargs=kwargs)
    except NoReverseMatch:
        pass
    else:
        default = True
    if INSTALLED:
        netloc = ('%s:%s' % INSTALLED.keys()[(- 1)])
        urlbits = urlparse.urlsplit(url)
        if (not urlbits[0]):
            if default:
                self.diverged = False
            if (not self.diverged):
                url = urlparse.urlunsplit((('http', netloc) + urlbits[2:]))
        else:
            self.diverged = True
    if self._testing_:
        return url
    return super(_EasyTwillBrowser, self).go(url)

dataset/ETHPy150Open ericholscher/django-test-utils/test_utils/utils/twill_runner.py _EasyTwillBrowser.go/original