Beispiel #1
0
 def test_can_forward_on_history(self):
     "should be able to forward history"
     url = "%s/iframe" % EXAMPLE_APP.rstrip('/')
     self.browser.visit(url)
     self.browser.back()
     self.browser.forward()
     self.assertEqual(url, self.browser.url)
Beispiel #2
0
 def test_can_forward_on_history(self):
     "should be able to forward history"
     url = "%s/iframe" % EXAMPLE_APP.rstrip('/')
     self.browser.visit(url)
     self.browser.back()
     self.browser.forward()
     self.assertEqual(url, self.browser.url)
Beispiel #3
0
 def test_should_connect_to_https_protocols(self):
     # We do not run an HTTPS server, but we know we handle https
     # if we get an SSLError accessing a non-HTTPS site.
     with self.assertRaises(SSLError):
         request = RequestHandler()
         url = EXAMPLE_APP.replace('http', 'https')
         request.connect(url)
         self.assertEqual(request.scheme, 'https')
 def test_should_connect_to_https_protocols(self):
     # We do not run an HTTPS server, but we know we handle https
     # if we get an SSLError accessing a non-HTTPS site.
     with self.assertRaises(SSLError):
         request = RequestHandler()
         url = EXAMPLE_APP.replace('http', 'https')
         request.connect(url)
         self.assertEqual(request.scheme, 'https')
Beispiel #5
0
 def test_can_back_on_history(self):
     "should be able to back on history"
     self.browser.visit("%s/iframe" % EXAMPLE_APP.rstrip('/'))
     self.browser.back()
     self.assertEqual(EXAMPLE_APP, self.browser.url)
Beispiel #6
0
 def test_can_back_on_history(self):
     "should be able to back on history"
     self.browser.visit("%s/iframe" % EXAMPLE_APP.rstrip('/'))
     self.browser.back()
     self.assertEqual(EXAMPLE_APP, self.browser.url)