MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_formatmonth

Method test_formatmonth

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

Source from the content-addressed store, hash-verified

449 )
450
451 def test_formatmonth(self):
452 self.assertEqual(
453 calendar.TextCalendar().formatmonth(2004, 1),
454 result_2004_01_text
455 )
456 self.assertEqual(
457 calendar.TextCalendar().formatmonth(0, 2),
458 result_0_02_text
459 )
460 def test_formatmonth_with_invalid_month(self):
461 with self.assertRaises(calendar.IllegalMonthError):
462 calendar.TextCalendar().formatmonth(2017, 13)

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
formatmonthMethod · 0.45

Tested by

no test coverage detected