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

Method check_htmlcalendar_encoding

Lib/test/test_calendar.py:383–391  ·  view source on GitHub ↗
(self, req, res)

Source from the content-addressed store, hash-verified

381 return lines
382
383 def check_htmlcalendar_encoding(self, req, res):
384 cal = calendar.HTMLCalendar()
385 format_ = default_format.copy()
386 format_["encoding"] = req or 'utf-8'
387 output = cal.formatyearpage(2004, encoding=req)
388 self.assertEqual(
389 output,
390 result_2004_html.format(**format_).encode(res)
391 )
392
393 def test_output(self):
394 self.assertEqual(

Calls 5

formatyearpageMethod · 0.95
copyMethod · 0.45
assertEqualMethod · 0.45
encodeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected