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

Method test_int64_pickling

test/test_bson.py:1455–1462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1453 self.round_trip_pickle(maxk, pickled_with_3)
1454
1455 def test_int64_pickling(self):
1456 i64 = Int64(9)
1457 pickled_with_3 = (
1458 b"\x80\x04\x95\x1e\x00\x00\x00\x00\x00\x00\x00\x8c\n"
1459 b"bson.int64\x94\x8c\x05Int64\x94\x93\x94K\t\x85\x94"
1460 b"\x81\x94."
1461 )
1462 self.round_trip_pickle(i64, pickled_with_3)
1463
1464 def test_bson_encode_decode(self) -> None:
1465 doc = {"_id": ObjectId()}

Callers

nothing calls this directly

Calls 2

round_trip_pickleMethod · 0.95
Int64Class · 0.90

Tested by

no test coverage detected