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

Method test_timestamp

test/test_timestamp.py:32–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30
31class TestTimestamp(unittest.TestCase):
32 def test_timestamp(self):
33 t = Timestamp(123, 456)
34 self.assertEqual(t.time, 123)
35 self.assertEqual(t.inc, 456)
36 self.assertIsInstance(t, Timestamp)
37
38 def test_datetime(self):
39 d = datetime.datetime(2010, 5, 5, tzinfo=utc)

Callers

nothing calls this directly

Calls 1

TimestampClass · 0.90

Tested by

no test coverage detected