MCPcopy Index your code
hub / github.com/python/cpython / test_dump_ur

Method test_dump_ur

Lib/test/test_imaplib.py:1085–1095  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 3

reaped_serverMethod · 0.95
_dump_urMethod · 0.80
assert_called_withMethod · 0.80

Tested by

no test coverage detected