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

Method check_error

test/test_connection_monitoring.py:207–210  ·  view source on GitHub ↗
(self, actual, expected)

Source from the content-addressed store, hash-verified

205 self.fail(f"missing events: {events[len(actual_events) :]!r}")
206
207 def check_error(self, actual, expected):
208 message = expected.pop("message")
209 self.check_object(actual, expected)
210 self.assertIn(message, str(actual))
211
212 def set_fail_point(self, command_args):
213 if not client_context.supports_failCommand_fail_point:

Callers 1

run_scenarioMethod · 0.95

Calls 2

check_objectMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected