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

Method test_formatmonthname_with_year

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

Source from the content-addressed store, hash-verified

502 calendar.TextCalendar().formatmonth(2017, -1)
503
504 def test_formatmonthname_with_year(self):
505 self.assertEqual(
506 calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=True),
507 '<tr><th colspan="7" class="month">January 2004</th></tr>'
508 )
509
510 def test_formatmonthname_without_year(self):
511 self.assertEqual(

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
formatmonthnameMethod · 0.45

Tested by

no test coverage detected