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

Function test_str_to_datetime_1

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

Source from the content-addressed store, hash-verified

26
27
28def test_str_to_datetime_1():
29 dt = str_to_datetime('2020-03-03T09:21:43.636153304Z')
30 assert type(dt) is datetime.datetime
31 assert dt.tzinfo is not None
32
33
34def test_str_to_datetime_2():

Callers

nothing calls this directly

Calls 2

str_to_datetimeFunction · 0.90
typeEnum · 0.50

Tested by

no test coverage detected