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