Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle [pull] master from EFForg:master #597

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/selenium/test_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

from util import ExtensionTestCase

kittens_url = 'http://freerangekitten.com/'
kittens_url = "http://freerangekitten.com/"

http_url = "http://http.badssl.com/"

http_url = 'http://http.badssl.com/'

class TestNavigation(ExtensionTestCase):
def test_redirect(self):
sleep(3)
self.driver.get(kittens_url)
self.assertTrue(self.driver.current_url.startswith('https'))
self.assertTrue(self.driver.current_url.startswith("https"))

def test_no_redirect_when_disabled(self):
self.toggle_disabled()
Expand All @@ -21,7 +22,7 @@ def test_no_redirect_when_disabled(self):
def test_httpnowhere_blocks(self):
# if self.shim.browser_type == 'firefox':
# raise unittest.SkipTest('broken on firefox')
href_script = 'return window.location.href;'
href_script = "return window.location.href;"
self.driver.get(http_url)
self.toggle_http_nowhere()
self.assertFalse(http_url == self.driver.execute_script(href_script))
Expand Down