Lines Matching refs:Season
142 class Season(Enum): class
147 self.Season = Season
177 Season = self.Season
179 set(dir(Season)),
185 Season = self.Season
187 set(dir(Season.WINTER)),
231 Season = self.Season
232 self.assertIs(Season(Season.WINTER), Season.WINTER)
235 Season = self.Season
236 self.assertEqual(Season.SPRING.value, 1)
242 Season = self.Season
243 lst = list(Season)
244 self.assertEqual(len(lst), len(Season))
245 self.assertEqual(len(Season), 4, Season)
247 [Season.SPRING, Season.SUMMER, Season.AUTUMN, Season.WINTER], lst)
250 e = Season(i)
251 self.assertEqual(e, getattr(Season, season))
255 self.assertIn(e, Season)
256 self.assertIs(type(e), Season)
257 self.assertIsInstance(e, Season)
265 Season = self.Season
266 self.assertEqual(Season.SPRING.name, 'SPRING')
267 self.assertEqual(Season.SPRING.value, 1)
269 Season.SPRING.name = 'invierno'
271 Season.SPRING.value = 2
274 Season = self.Season
276 Season.WINTER = 'really cold'
279 class Season(Enum): class
288 self.assertTrue(hasattr(Season, 'spam'))
289 del Season.spam
290 self.assertFalse(hasattr(Season, 'spam'))
293 del Season.SPRING
295 del Season.DRY
297 del Season.SPRING.name
356 Season = self.Season
357 self.assertIn(Season.AUTUMN, Season)
360 3 in Season
363 'AUTUMN' in Season
364 val = Season(3)
365 self.assertIn(val, Season)
369 self.assertNotIn(OtherEnum.two, Season)
376 Season = self.Season
377 self.assertIn(Season.AUTUMN, Season)
378 self.assertTrue(3 in Season)
379 self.assertFalse('AUTUMN' in Season)
380 val = Season(3)
381 self.assertIn(val, Season)
385 self.assertNotIn(OtherEnum.two, Season)
388 Season = self.Season
390 Season.SPRING < Season.WINTER
392 Season.SPRING > 4
394 self.assertNotEqual(Season.SPRING, 1)
401 self.assertNotEqual(Season.SPRING, Part.SPRING)
403 Season.SPRING < Part.CLIP
406 class Season(Enum): class
412 lst = list(Season)
415 [Season.SPRING, Season.SUMMER,
416 Season.AUTUMN, Season.WINTER,
418 self.assertIs(Season.FALL, Season.AUTUMN)
419 self.assertEqual(Season.FALL.value, 3)
420 self.assertEqual(Season.AUTUMN.value, 3)
421 self.assertIs(Season(3), Season.AUTUMN)
422 self.assertIs(Season(1), Season.SPRING)
423 self.assertEqual(Season.FALL.name, 'AUTUMN')
425 [k for k,v in Season.__members__.items() if v.name != k],
468 Season = self.Season
469 self.assertEqual('{}'.format(Season.SPRING),
470 '{}'.format(str(Season.SPRING)))
471 self.assertEqual( '{:}'.format(Season.SPRING),
472 '{:}'.format(str(Season.SPRING)))
473 self.assertEqual('{:20}'.format(Season.SPRING),
474 '{:20}'.format(str(Season.SPRING)))
475 self.assertEqual('{:^20}'.format(Season.SPRING),
476 '{:^20}'.format(str(Season.SPRING)))
477 self.assertEqual('{:>20}'.format(Season.SPRING),
478 '{:>20}'.format(str(Season.SPRING)))
479 self.assertEqual('{:<20}'.format(Season.SPRING),
480 '{:<20}'.format(str(Season.SPRING)))
678 Season = self.Season
680 dates[Season.WINTER] = '1225'
681 dates[Season.SPRING] = '0315'
682 dates[Season.SUMMER] = '0704'
683 dates[Season.AUTUMN] = '1031'
684 self.assertEqual(dates[Season.AUTUMN], '1031')
865 Season = self.Season
866 self.assertTrue(getattr(Season, '__eq__'))
869 class Season(Enum): class
875 list(Season),
876 [Season.SUMMER, Season.WINTER, Season.AUTUMN, Season.SPRING],
881 list(reversed(self.Season)),
882 [self.Season.WINTER, self.Season.AUTUMN, self.Season.SUMMER,
883 self.Season.SPRING]