MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_maxkey_pickling

Method test_maxkey_pickling

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

Source from the content-addressed store, hash-verified

1443 self.round_trip_pickle(mink, pickled_with_3)
1444
1445 def test_maxkey_pickling(self):
1446 maxk = MaxKey()
1447 pickled_with_3 = (
1448 b"\x80\x04\x95\x1e\x00\x00\x00\x00\x00\x00\x00\x8c"
1449 b"\x0cbson.max_key\x94\x8c\x06MaxKey\x94\x93\x94)"
1450 b"\x81\x94."
1451 )
1452
1453 self.round_trip_pickle(maxk, pickled_with_3)
1454
1455 def test_int64_pickling(self):
1456 i64 = Int64(9)

Callers

nothing calls this directly

Calls 2

round_trip_pickleMethod · 0.95
MaxKeyClass · 0.90

Tested by

no test coverage detected