(self)
| 1083 | @cpython_only |
| 1084 | @unittest.skipUnless(__debug__, "Won't work if __debug__ is False") |
| 1085 | def test_dump_ur(self): |
| 1086 | # See: http://bugs.python.org/issue26543 |
| 1087 | untagged_resp_dict = {'READ-WRITE': [b'']} |
| 1088 | |
| 1089 | with self.reaped_server(SimpleIMAPHandler) as server: |
| 1090 | with self.imap_class(*server.server_address) as imap: |
| 1091 | with mock.patch.object(imap, '_mesg') as mock_mesg: |
| 1092 | imap._dump_ur(untagged_resp_dict) |
| 1093 | mock_mesg.assert_called_with( |
| 1094 | "untagged responses dump:READ-WRITE: [b'']" |
| 1095 | ) |
| 1096 | |
| 1097 | |
| 1098 | @unittest.skipUnless(ssl, "SSL not available") |
nothing calls this directly
no test coverage detected