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

Method testPertain

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

Source from the content-addressed store, hash-verified

482 parse("January 25, 1921 23:13 PM")
483
484 def testPertain(self):
485 self.assertEqual(parse("Sep 03", default=self.default),
486 datetime(2003, 9, 3))
487 self.assertEqual(parse("Sep of 03", default=self.default),
488 datetime(2003, 9, 25))
489
490 def testFuzzy(self):
491 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