(self)
| 862 | self.assertEqual(days[-1][1], (firstweekday - 1) % 7) |
| 863 | |
| 864 | def test_iterweekdays(self): |
| 865 | week0 = list(range(7)) |
| 866 | for firstweekday in range(7): |
| 867 | cal = calendar.Calendar(firstweekday) |
| 868 | week = list(cal.iterweekdays()) |
| 869 | expected = week0[firstweekday:] + week0[:firstweekday] |
| 870 | self.assertEqual(week, expected) |
| 871 | |
| 872 | |
| 873 | class MonthCalendarTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected