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

Class rus_parserinfo

tests/test_parser.py:427–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425 def testParseUnicodeWords(self):
426
427 class rus_parserinfo(parserinfo):
428 MONTHS = [("янв", "Январь"),
429 ("фев", "Февраль"),
430 ("мар", "Март"),
431 ("апр", "Апрель"),
432 ("май", "Май"),
433 ("июн", "Июнь"),
434 ("июл", "Июль"),
435 ("авг", "Август"),
436 ("сен", "Сентябрь"),
437 ("окт", "Октябрь"),
438 ("ноя", "Ноябрь"),
439 ("дек", "Декабрь")]
440
441 expected = datetime(2015, 9, 10, 10, 20)
442 res = parse('10 Сентябрь 2015 10:20', parserinfo=rus_parserinfo())

Callers 1

testParseUnicodeWordsMethod · 0.85

Calls

no outgoing calls

Tested by 1

testParseUnicodeWordsMethod · 0.68