Check that trying to use the given client certificate fails
(self, certfile)
| 721 | ) |
| 722 | |
| 723 | def bad_cert_test(self, certfile): |
| 724 | """Check that trying to use the given client certificate fails""" |
| 725 | certfile = os.path.join(os.path.dirname(__file__) or os.curdir, |
| 726 | "certdata", certfile) |
| 727 | sock = socket.socket() |
| 728 | self.addCleanup(sock.close) |
| 729 | with self.assertRaises(ssl.SSLError): |
| 730 | test_wrap_socket(sock, |
| 731 | certfile=certfile) |
| 732 | |
| 733 | def test_empty_cert(self): |
| 734 | """Wrapping with an empty cert file""" |
no test coverage detected