MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_strftime_formats_2003Sep25

Method test_strftime_formats_2003Sep25

tests/test_parser.py:281–289  ·  view source on GitHub ↗
(self, fmt, dstr)

Source from the content-addressed store, hash-verified

279 ("%y %d %b", "03 25 Sep",),
280 ])
281 def test_strftime_formats_2003Sep25(self, fmt, dstr):
282 expected = datetime(2003, 9, 25)
283
284 # First check that the format strings behave as expected
285 # (not strictly necessary, but nice to have)
286 assert expected.strftime(fmt) == dstr
287
288 res = parse(dstr)
289 assert res == expected
290
291
292class TestInputTypes:

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected