(self)
| 415 | client.search('foo', 'bar') |
| 416 | |
| 417 | def test_bad_auth_name(self): |
| 418 | class MyServer(SimpleIMAPHandler): |
| 419 | def cmd_AUTHENTICATE(self, tag, args): |
| 420 | self._send_tagged(tag, 'NO', |
| 421 | 'unrecognized authentication type {}'.format(args[0])) |
| 422 | client, _ = self._setup(MyServer) |
| 423 | with self.assertRaisesRegex(imaplib.IMAP4.error, |
| 424 | 'unrecognized authentication type METHOD'): |
| 425 | client.authenticate('METHOD', lambda: 1) |
| 426 | |
| 427 | def test_invalid_authentication(self): |
| 428 | class MyServer(SimpleIMAPHandler): |
nothing calls this directly
no test coverage detected