(self)
| 935 | |
| 936 | @threading_helper.reap_threads |
| 937 | def test_bad_auth_name(self): |
| 938 | |
| 939 | class MyServer(SimpleIMAPHandler): |
| 940 | |
| 941 | def cmd_AUTHENTICATE(self, tag, args): |
| 942 | self._send_tagged(tag, 'NO', 'unrecognized authentication ' |
| 943 | 'type {}'.format(args[0])) |
| 944 | |
| 945 | with self.reaped_pair(MyServer) as (server, client): |
| 946 | with self.assertRaises(imaplib.IMAP4.error): |
| 947 | client.authenticate('METHOD', lambda: 1) |
| 948 | |
| 949 | @threading_helper.reap_threads |
| 950 | def test_invalid_authentication(self): |
nothing calls this directly
no test coverage detected