diff options
author | Heikki Toivonen <heikki@heikkitoivonen.net> | 2006-04-24 22:55:56 +0000 |
---|---|---|
committer | Heikki Toivonen <heikki@heikkitoivonen.net> | 2006-04-24 22:55:56 +0000 |
commit | bf954b1e085ef49171fb4f32916cff7126033061 (patch) | |
tree | d7bd88f4732f2974d126a46456977016f67a2ef2 | |
parent | 127b51641096e0b1f2f0f0adda2bdc61969c6848 (diff) | |
download | m2crypto-bf954b1e085ef49171fb4f32916cff7126033061.tar.gz |
Hmph, of course I need to make it so the test actually passes...
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@420 2715db39-9adf-0310-9c64-84f055769b4b
-rw-r--r-- | tests/test_ssl.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py index 4c62be1..8c4dd8d 100644 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -460,15 +460,10 @@ class SSLClientTestCase(unittest.TestCase): ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9) ctx.load_verify_locations('server.pem') s = SSL.Connection(ctx) - try: - s.connect(self.srv_addr) - except SSL.SSLError, e: - assert 0, e - data = self.http_get(s) + self.assertRaises(SSL.SSLError, s.connect, self.srv_addr) s.close() finally: self.stop_server(pid) - self.failIf(string.find(data, 's_server -quiet -www') == -1) def test_HTTPSConnection(self): pid = self.start_server(self.args) |