Bug 1325079 - Delete unused test_certificates.py; r?whimboo draft
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 29 Dec 2016 15:11:33 +0000
changeset 454485 6e5783be030d0a0126a087062d03d7c60c9a9594
parent 454351 143bb4b9249e528e658f6ccc449991794b8675f8
child 540725 d9d3fc8f2540561349354257cb39b8012ed2515b
push id39949
push userbmo:ato@mozilla.com
push dateThu, 29 Dec 2016 15:13:51 +0000
reviewerswhimboo
bugs1325079
milestone53.0a1
Bug 1325079 - Delete unused test_certificates.py; r?whimboo The test was accidentally committed at some earlier point (hard to research due to hg not tracking file renamings) and the functionality is sufficiently tested by testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py:170. MozReview-Commit-ID: D0lAAGDm22z
testing/marionette/harness/marionette_harness/tests/unit/test_certificates.py
deleted file mode 100644
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_certificates.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-from marionette_driver.errors import UnknownException
-
-from marionette_harness import MarionetteTestCase
-
-
-class TestCertificates(MarionetteTestCase):
-    def test_block_insecure_sites(self):
-        self.marionette.delete_session()
-        self.marionette.start_session()
-
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="http"))
-        self.assertIn("http://", self.marionette.get_url())
-        with self.assertRaises(UnknownException):
-            self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-
-    def test_accept_all_insecure(self):
-        self.marionette.delete_session()
-        self.marionette.start_session({"desiredCapability": {"acceptSslCerts": ["*"]}})
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-        self.assertIn("https://", self.marionette.url)
-
-    """
-    def test_accept_some_insecure(self):
-        self.marionette.delete_session()
-        self.marionette.start_session({"requiredCapabilities": {"acceptSslCerts": ["127.0.0.1"]}})
-        self.marionette.navigate(self.fixtures.where_is("test.html", on="https"))
-        self.assertIn("https://", self.marionette.url)
-    """
\ No newline at end of file