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

Method testUnspecifiedDayFallback

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

Source from the content-addressed store, hash-verified

541 self.assertEqual(res, datetime(1990, 6, 13, 5, 50))
542
543 def testUnspecifiedDayFallback(self):
544 # Test that for an unspecified day, the fallback behavior is correct.
545 self.assertEqual(parse("April 2009", default=datetime(2010, 1, 31)),
546 datetime(2009, 4, 30))
547
548 def testUnspecifiedDayFallbackFebNoLeapYear(self):
549 self.assertEqual(parse("Feb 2007", default=datetime(2010, 1, 31)),

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected