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

Method assertOperationFailureEqual

test/test_errors.py:72–76  ·  view source on GitHub ↗
(self, exc1, exc2)

Source from the content-addressed store, hash-verified

70 self.assertEqual(str(exc1), str(exc2))
71
72 def assertOperationFailureEqual(self, exc1, exc2):
73 self.assertPyMongoErrorEqual(exc1, exc2)
74 self.assertEqual(exc1.code, exc2.code)
75 self.assertEqual(exc1.details, exc2.details)
76 self.assertEqual(exc1._max_wire_version, exc2._max_wire_version)
77
78 def test_pickle_NotPrimaryError(self):
79 exc = NotPrimaryError("not primary test", {"errmsg": "error"})

Calls 1

Tested by

no test coverage detected