(self)
| 947 | |
| 948 | @threading_helper.reap_threads |
| 949 | def test_invalid_authentication(self): |
| 950 | |
| 951 | class MyServer(SimpleIMAPHandler): |
| 952 | |
| 953 | def cmd_AUTHENTICATE(self, tag, args): |
| 954 | self._send_textline('+') |
| 955 | self.response = yield |
| 956 | self._send_tagged(tag, 'NO', '[AUTHENTICATIONFAILED] invalid') |
| 957 | |
| 958 | with self.reaped_pair(MyServer) as (server, client): |
| 959 | with self.assertRaises(imaplib.IMAP4.error): |
| 960 | code, data = client.authenticate('MYAUTH', lambda x: b'fake') |
| 961 | |
| 962 | @threading_helper.reap_threads |
| 963 | def test_valid_authentication(self): |
nothing calls this directly
no test coverage detected