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

Method test_strftime_formats_2003Sep25

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected