MCPcopy Create free account
hub / github.com/ceph/ceph / test_datetime_now_1

Function test_datetime_now_1

src/python-common/ceph/tests/test_datetime.py:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def test_datetime_now_1():
57 dt = str_to_datetime('2020-03-03T09:21:43.636153304Z')
58 dt_now = datetime_now()
59 assert type(dt_now) is datetime.datetime
60 assert dt_now.tzinfo is not None
61 assert dt < dt_now

Callers

nothing calls this directly

Calls 3

str_to_datetimeFunction · 0.90
datetime_nowFunction · 0.90
typeEnum · 0.50

Tested by

no test coverage detected