(self)
| 532 | client = self.imap_class("localhost", addr, timeout=0.001) |
| 533 | |
| 534 | def test_with_statement(self): |
| 535 | _, server = self._setup(SimpleIMAPHandler, connect=False) |
| 536 | with self.imap_class(*server.server_address) as imap: |
| 537 | imap.login('user', 'pass') |
| 538 | self.assertEqual(server.logged, 'user') |
| 539 | self.assertIsNone(server.logged) |
| 540 | |
| 541 | def test_with_statement_logout(self): |
| 542 | # It is legal to log out explicitly inside the with block |
nothing calls this directly
no test coverage detected