MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_pickle_EncryptionError

Method test_pickle_EncryptionError

test/test_errors.py:91–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.assertIn("batch op errors occurred", str(exc))
90
91 def test_pickle_EncryptionError(self):
92 cause = OperationFailure("error", code=5, details={}, max_wire_version=7)
93 exc = EncryptionError(cause)
94 exc2 = pickle.loads(pickle.dumps(exc))
95 self.assertPyMongoErrorEqual(exc, exc2)
96 self.assertOperationFailureEqual(cause, exc2.cause)
97
98
99if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

OperationFailureClass · 0.90
EncryptionErrorClass · 0.90

Tested by

no test coverage detected