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

Method testIncreasingCTime

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

Source from the content-addressed store, hash-verified

581 )
582
583 def testIncreasingCTime(self):
584 # This test will check 200 different years, every month, every day,
585 # every hour, every minute, every second, and every weekday, using
586 # a delta of more or less 1 year, 1 month, 1 day, 1 minute and
587 # 1 second.
588 delta = timedelta(days=365+31+1, seconds=1+60+60*60)
589 dt = datetime(1900, 1, 1, 0, 0, 0, 0)
590 for i in range(200):
591 assert parse(dt.ctime()) == dt
592 dt += delta
593
594 def testIncreasingISOFormat(self):
595 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