def __init__(self, url='http://localhost/'): # XXX this is a workaround for a but in NousTestBrowser, it # can't handle url not being passed to the constructor WSGI_Browser.__init__(self) self.handleErrors = False if url is not None: self.open(url)
def test_https_intercepted_443_port(): b = WSGI_Browser() b.open('https://some_hopefully_nonexistant_domain:443/') assert test_wsgi_app.success()
def test_intercept_removed(): remove_intercept() b = WSGI_Browser() b.open('http://some_hopefully_nonexistant_domain:80/')
def test_intercepted(): b = WSGI_Browser() b.open('http://some_hopefully_nonexistant_domain:80/') assert test_wsgi_app.success()