(self)
| 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 | |
| 744 | class MonthCalendarTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected