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

Method test_itermonthdays4

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

Source from the content-addressed store, hash-verified

835 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
836
837 def test_itermonthdays4(self):
838 cal = calendar.Calendar(firstweekday=3)
839 days = list(cal.itermonthdays4(2001, 2))
840 self.assertEqual(days[0], (2001, 2, 1, 3))
841 self.assertEqual(days[-1], (2001, 2, 28, 2))
842
843 def test_itermonthdays(self):
844 for firstweekday in range(7):

Callers

nothing calls this directly

Calls 3

itermonthdays4Method · 0.95
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected