def test_output_htmlcalendar(self):
encoding = 'ascii'
cal = calendar.HTMLCalendar()
self.assertEqual(
cal.formatyearpage(2004, encoding=encoding).strip(b' \t\n'),
result_2004_html.strip(' \t\n').encode(encoding)
)
评论列表
文章目录