(self)
| 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) |
nothing calls this directly
no test coverage detected