(self)
| 399 | self.c2 = Connection() |
| 400 | |
| 401 | def testSSLPlainSimple(self): |
| 402 | if not SASL.extended(): |
| 403 | raise Skipped("Simple SASL server does not support PLAIN") |
| 404 | common.ensureCanTestExtendedSASL() |
| 405 | |
| 406 | clientUser = 'user@proton' |
| 407 | mech = 'PLAIN' |
| 408 | |
| 409 | self.c1.user = clientUser |
| 410 | self.c1.password = 'password' |
| 411 | self.c1.hostname = 'localhost' |
| 412 | |
| 413 | self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER) |
| 414 | |
| 415 | _sslConnection(self.client_domain, self.t1, self.c1) |
| 416 | _sslConnection(self.server_domain, self.t2, self.c2) |
| 417 | |
| 418 | _testSaslMech(self, mech, encrypted=True) |
| 419 | |
| 420 | def testSSLPlainAuthzid(self): |
| 421 | if not SASL.extended(): |
nothing calls this directly
no test coverage detected