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

Method test_itermonthdays4

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

Source from the content-addressed store, hash-verified

706 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
707
708 def test_itermonthdays4(self):
709 cal = calendar.Calendar(firstweekday=3)
710 days = list(cal.itermonthdays4(2001, 2))
711 self.assertEqual(days[0], (2001, 2, 1, 3))
712 self.assertEqual(days[-1], (2001, 2, 28, 2))
713
714 def test_itermonthdays(self):
715 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