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

Method test_iterweekdays

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

Source from the content-addressed store, hash-verified

733 self.assertEqual(days[-1][1], (firstweekday - 1) % 7)
734
735 def test_iterweekdays(self):
736 week0 = list(range(7))
737 for firstweekday in range(7):
738 cal = calendar.Calendar(firstweekday)
739 week = list(cal.iterweekdays())
740 expected = week0[firstweekday:] + week0[:firstweekday]
741 self.assertEqual(week, expected)
742
743
744class MonthCalendarTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

iterweekdaysMethod · 0.95
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected