def test_https_intercepted_443_port(): b = WSGI_Browser() b.open('https://some_hopefully_nonexistant_domain:443/') assert test_wsgi_app.success()
def test_https(): urllib2_intercept.install_opener() urllib2.urlopen('https://some_hopefully_nonexistant_domain:443/') assert test_wsgi_app.success()
def test_https_default_port(): # I guess the default port for https is 80 but I thoght it would be 443 urllib2_intercept.install_opener() urllib2.urlopen('https://some_hopefully_nonexistant_domain/') assert test_wsgi_app.success()
def test_intercepted(): b = Browser() b.open('http://some_hopefully_nonexistant_domain:80/') assert test_wsgi_app.success()
def test_https_intercept_default_port(): b = Browser() b.open('https://some_hopefully_nonexistant_domain/') assert test_wsgi_app.success()
def test_https_specific_port_success(): b = Browser() b.open('https://some_hopefully_nonexistant_domain:443/') assert test_wsgi_app.success()
def test_page(self): self.getPage('https://%s:%s/' % (self.HOST, self.PORT)) assert test_wsgi_app.success()
def test_https_success(): http = httplib2.Http() resp, content = http.request('https://some_hopefully_nonexistant_domain/', 'GET') assert test_wsgi_app.success()
def test_get(self): r = self.page('https://some_hopefully_nonexistant_domain/') assert test_wsgi_app.success()
def test_success(): http = httplib2.Http() resp, content = http.request('http://some_hopefully_nonexistant_domain:80/', 'GET') eq_(content, "WSGI intercept successful!\n") assert test_wsgi_app.success()
def test_https_success(): http = httplib.HTTPSConnection('some_hopefully_nonexistant_domain') http.request('GET', '/') content = http.getresponse().read() eq_(content, 'WSGI intercept successful!\n') assert test_wsgi_app.success()