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

Method testIncreasingCTime

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

Source from the content-addressed store, hash-verified

578 parse, '04/04/0d4', fuzzy_with_tokens=True)
579
580 def testIncreasingCTime(self):
581 # This test will check 200 different years, every month, every day,
582 # every hour, every minute, every second, and every weekday, using
583 # a delta of more or less 1 year, 1 month, 1 day, 1 minute and
584 # 1 second.
585 delta = timedelta(days=365+31+1, seconds=1+60+60*60)
586 dt = datetime(1900, 1, 1, 0, 0, 0, 0)
587 for i in range(200):
588 assert parse(dt.ctime()) == dt
589 dt += delta
590
591 def testIncreasingISOFormat(self):
592 delta = timedelta(days=365+31+1, seconds=1+60+60*60)

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected