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

Method round_trip

test/test_json_util.py:73–74  ·  view source on GitHub ↗
(self, doc, **kwargs)

Source from the content-addressed store, hash-verified

71 return json_util.loads(json_util.dumps(doc, **kwargs), **kwargs)
72
73 def round_trip(self, doc, **kwargs):
74 self.assertEqual(doc, self.round_tripped(doc, **kwargs))
75
76 def test_basic(self):
77 self.round_trip({"hello": "world"})

Callers 9

test_basicMethod · 0.95
test_objectidMethod · 0.95
test_dbrefMethod · 0.95
test_datetimeMethod · 0.95
test_minkeyMethod · 0.95
test_maxkeyMethod · 0.95
test_uuidMethod · 0.95
test_binaryMethod · 0.95
test_codeMethod · 0.95

Calls 1

round_trippedMethod · 0.95

Tested by

no test coverage detected