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

Method test_operation_failure

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

Source from the content-addressed store, hash-verified

39 self.assertIn("full error", traceback.format_exc())
40
41 def test_operation_failure(self):
42 exc = OperationFailure("operation failure test", 10, {"errmsg": "error"})
43 self.assertIn("full error", str(exc))
44 try:
45 raise exc
46 except OperationFailure:
47 self.assertIn("full error", traceback.format_exc())
48
49 def _test_unicode_strs(self, exc):
50 self.assertEqual(

Callers

nothing calls this directly

Calls 1

OperationFailureClass · 0.90

Tested by

no test coverage detected