示例#1
0
def test_https_intercepted_443_port():
    b = WSGI_Browser()
    b.open('https://some_hopefully_nonexistant_domain:443/')
    assert test_wsgi_app.success()
示例#2
0
def test_https():
    urllib2_intercept.install_opener()
    urllib2.urlopen('https://some_hopefully_nonexistant_domain:443/')
    assert test_wsgi_app.success()
示例#3
0
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()
示例#4
0
def test_intercepted():
    b = Browser()
    b.open('http://some_hopefully_nonexistant_domain:80/')
    assert test_wsgi_app.success()
示例#5
0
def test_https_intercept_default_port():
    b = Browser()
    b.open('https://some_hopefully_nonexistant_domain/')
    assert test_wsgi_app.success()
示例#6
0
def test_https_specific_port_success():
    b = Browser()
    b.open('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()
示例#8
0
 def test_page(self):
     self.getPage('https://%s:%s/' % (self.HOST, self.PORT))
     assert test_wsgi_app.success()
示例#9
0
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_success():
    http = httplib2.Http()
    resp, content = http.request('https://some_hopefully_nonexistant_domain/', 'GET')
    assert test_wsgi_app.success()
示例#11
0
 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()
示例#13
0
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()
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()
示例#15
0
def test_intercepted():
    b = Browser()
    b.open('http://some_hopefully_nonexistant_domain:80/')
    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()
示例#17
0
def test_https_intercept_default_port():
    b = Browser()
    b.open('https://some_hopefully_nonexistant_domain/')
    assert test_wsgi_app.success()
示例#18
0
def test_https_specific_port_success():
    b = Browser()
    b.open('https://some_hopefully_nonexistant_domain:443/')
    assert test_wsgi_app.success()