MCPcopy Index your code
hub / github.com/python/cpython / test_yeardatescalendar

Method test_yeardatescalendar

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

Source from the content-addressed store, hash-verified

458 self.check_htmlcalendar_encoding(None, 'utf-8')
459
460 def test_yeardatescalendar(self):
461 def shrink(cal):
462 return [[[' '.join('{:02d}/{:02d}/{}'.format(
463 d.month, d.day, str(d.year)[-2:]) for d in z)
464 for z in y] for y in x] for x in cal]
465 self.assertEqual(
466 shrink(calendar.Calendar().yeardatescalendar(2004)),
467 result_2004_dates
468 )
469
470 def test_yeardayscalendar(self):
471 self.assertEqual(

Callers

nothing calls this directly

Calls 2

yeardatescalendarMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected