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

Class rus_parserinfo

tests/test_parser.py:425–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

testParseUnicodeWordsMethod · 0.85

Calls

no outgoing calls

Tested by 1

testParseUnicodeWordsMethod · 0.68