Skip to content

Commit

Permalink
[#1355] fix ssl config test
Browse files Browse the repository at this point in the history
  • Loading branch information
xael-fry committed Apr 3, 2022
1 parent d1da5ee commit b13ba92
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions samples-and-tests/i-am-a-developer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
class IamADeveloper(unittest.TestCase):
play = None

@unittest.skip
def testSSLConfig(self):

# Testing ssl config
Expand Down Expand Up @@ -146,9 +145,7 @@ def testSSLConfig(self):
self.assertTrue(waitFor(self.play, 'Listening for HTTPS on port ' + DEFAULTS['http.port']))

step("Send request to https")

browser = mechanize.Browser()
response = browser.open('https://' + DEFAULTS['host'] + ':' + DEFAULTS['http.port'])
response = browserOpen('https://' + DEFAULTS['host'] + ':' + DEFAULTS['http.port'])

step("check that ssl message is logged")
self.assertTrue(waitFor(self.play, 'I am ssl secured!'))
Expand All @@ -171,7 +168,7 @@ def testSSLConfig(self):

step("Send request to https")

browserOpen('https://' + DEFAULTS['host'] + ':' + DEFAULTS['http.port'])
response = browserOpen('https://' + DEFAULTS['host'] + ':' + DEFAULTS['http.port'])

step("check that ssl message is logged")
self.assertTrue(waitFor(self.play, 'I am ssl secured!'))
Expand Down

0 comments on commit b13ba92

Please sign in to comment.