MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_two_datetimes

Function test_two_datetimes

tests/test_parse.py:350–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348
349
350def test_two_datetimes():
351 r = parse.parse("a {:ti} {:ti} b", "a 1997-07-16 2012-08-01 b")
352 assert len(r.fixed) == 2
353 assert r[0] == datetime(1997, 7, 16)
354 assert r[1] == datetime(2012, 8, 1)
355
356
357def test_flexible_datetimes():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected