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

Method test_timestamp_pickling

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

Source from the content-addressed store, hash-verified

1399 self.round_trip_pickle(reg, pickled_with_3)
1400
1401 def test_timestamp_pickling(self):
1402 ts = Timestamp(0, 1)
1403 pickled_with_3 = (
1404 b"\x80\x04\x95Q\x00\x00\x00\x00\x00\x00\x00\x8c"
1405 b"\x0ebson.timestamp\x94\x8c\tTimestamp\x94\x93\x94)"
1406 b"\x81\x94}\x94("
1407 b"\x8c\x10_Timestamp__time\x94K\x00\x8c"
1408 b"\x0f_Timestamp__inc\x94K\x01ub."
1409 )
1410 self.round_trip_pickle(ts, pickled_with_3)
1411
1412 def test_dbref_pickling(self):
1413 dbr = DBRef("foo", 5)

Callers

nothing calls this directly

Calls 2

round_trip_pickleMethod · 0.95
TimestampClass · 0.90

Tested by

no test coverage detected