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

Method testCorrectErrorOnFuzzyWithTokens

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

Source from the content-addressed store, hash-verified

558 parse('shouldfail')
559
560 def testCorrectErrorOnFuzzyWithTokens(self):
561 self.assertRaisesRegex(
562 ParserError,
563 "Unknown string format",
564 parse,
565 "04/04/32/423",
566 fuzzy_with_tokens=True,
567 )
568 self.assertRaisesRegex(
569 ParserError,
570 "Unknown string format",
571 parse,
572 "04/04/04 +32423",
573 fuzzy_with_tokens=True,
574 )
575 self.assertRaisesRegex(
576 ParserError,
577 "Unknown string format",
578 parse,
579 "04/04/0d4",
580 fuzzy_with_tokens=True,
581 )
582
583 def testIncreasingCTime(self):
584 # This test will check 200 different years, every month, every day,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected