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

Method testPertain

tests/test_parser.py:496–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

494 parse("January 25, 1921 23:13 PM")
495
496 def testPertain(self):
497 self.assertEqual(parse("Sep 03", default=self.default),
498 datetime(2003, 9, 3))
499 self.assertEqual(parse("Sep of 03", default=self.default),
500 datetime(2003, 9, 25))
501
502 def testFuzzy(self):
503 s = "Today is 25 of September of 2003, exactly " \

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected