MCPcopy Index your code
hub / github.com/python/cpython / test_formatmonth

Method test_formatmonth

Lib/test/test_calendar.py:489–497  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

487 )
488
489 def test_formatmonth(self):
490 self.assertEqual(
491 calendar.TextCalendar().formatmonth(2004, 1),
492 result_2004_01_text
493 )
494 self.assertEqual(
495 calendar.TextCalendar().formatmonth(0, 2),
496 result_0_02_text
497 )
498 def test_formatmonth_with_invalid_month(self):
499 with self.assertRaises(calendar.IllegalMonthError):
500 calendar.TextCalendar().formatmonth(2017, 13)

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
formatmonthMethod · 0.45

Tested by

no test coverage detected