Lines Matching refs:WeekDay
564 class WeekDay(IntEnum): class
573 self.assertEqual(['a', 'b', 'c'][WeekDay.MONDAY], 'c')
574 self.assertEqual([i for i in range(WeekDay.TUESDAY)], [0, 1, 2])
576 lst = list(WeekDay)
577 self.assertEqual(len(lst), len(WeekDay))
578 self.assertEqual(len(WeekDay), 7)
582 e = WeekDay(i)
586 self.assertIn(e, WeekDay)
589 self.assertIs(type(e), WeekDay)
594 class WeekDay(IntEnum): class
602 self.assertIs(WeekDay.TEUSDAY, WeekDay.TUESDAY)
603 self.assertEqual(WeekDay(3).name, 'TUESDAY')
604 self.assertEqual([k for k,v in WeekDay.__members__.items()