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

Method test_data_timestamp

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

Source from the content-addressed store, hash-verified

402 self.assertTrue(str(ctx.exception))
403
404 def test_data_timestamp(self):
405 self.assertEqual(
406 {"test": Timestamp(4, 20)},
407 decode(b"\x13\x00\x00\x00\x11\x74\x65\x73\x74\x00\x14\x00\x00\x00\x04\x00\x00\x00\x00"),
408 )
409
410 def test_basic_encode(self):
411 self.assertRaises(TypeError, encode, 100)

Callers

nothing calls this directly

Calls 2

TimestampClass · 0.90
decodeFunction · 0.90

Tested by

no test coverage detected