Lines Matching refs:WeekDay
730 class WeekDay(IntEnum): class
739 self.assertEqual(['a', 'b', 'c'][WeekDay.MONDAY], 'c')
740 self.assertEqual([i for i in range(WeekDay.TUESDAY)], [0, 1, 2])
742 lst = list(WeekDay)
743 self.assertEqual(len(lst), len(WeekDay))
744 self.assertEqual(len(WeekDay), 7)
748 e = WeekDay(i)
752 self.assertIn(e, WeekDay)
755 self.assertIs(type(e), WeekDay)
760 class WeekDay(IntEnum): class
768 self.assertIs(WeekDay.TEUSDAY, WeekDay.TUESDAY)
769 self.assertEqual(WeekDay(3).name, 'TUESDAY')
770 self.assertEqual([k for k,v in WeekDay.__members__.items()