Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Change test HTTP/S URL
Browse files Browse the repository at this point in the history
mediawiki domain has been included in the HSTS preload list of FF and the redirection that we observe is not due to httpseverywhere. We replace it for an HTTP request/response service that better suits our purposes.
  • Loading branch information
mjuarezm committed Jul 16, 2015
1 parent 6c8cfb6 commit 27c0de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/torutils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

# Test URLs are taken from the TBB test suit
# https://gitweb.torproject.org/boklm/tor-browser-bundle-testsuite.git/tree/mozmill-tests/tbb-tests/https-everywhere.js
HTTP_URL = "http://www.mediawiki.org/wiki/MediaWiki"
HTTPS_URL = "https://www.mediawiki.org/wiki/MediaWiki"
HTTP_URL = "http://httpbin.org/"
HTTPS_URL = "https://httpbin.org/"


class TestTorUtils(unittest.TestCase):
Expand Down Expand Up @@ -56,10 +56,10 @@ def test_tb_extensions(self):
time.sleep(1)
try:
WebDriverWait(tb_driver, 60).until(
EC.title_contains("MediaWiki")
EC.title_contains("httpbin")
)
except TimeoutException:
self.fail("The title should contain MediaWiki")
self.fail("The title should contain httpbin")
self.assertEqual(tb_driver.current_url, HTTPS_URL)
# NoScript should disable WebGL
webgl_test_url = "https://developer.mozilla.org/samples/webgl/sample1/index.html" # noqa
Expand Down

0 comments on commit 27c0de0

Please sign in to comment.