From 27c0de0a8c05f4e18d03db4ac217f7bce3964e08 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 16 Jul 2015 15:20:18 +0200 Subject: [PATCH] Change test HTTP/S URL 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. --- test/torutils_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/torutils_test.py b/test/torutils_test.py index e277183..6ea78ee 100644 --- a/test/torutils_test.py +++ b/test/torutils_test.py @@ -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): @@ -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