Lines Matching full: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)),
219 Season = self.Season
220 self.assertIs(Season(Season.WINTER), Season.WINTER)
223 Season = self.Season
224 self.assertEqual(Season.SPRING.value, 1)
230 Season = self.Season
231 lst = list(Season)
232 self.assertEqual(len(lst), len(Season))
233 self.assertEqual(len(Season), 4, Season)
235 [Season.SPRING, Season.SUMMER, Season.AUTUMN, Season.WINTER], lst)
237 for i, season in enumerate('SPRING SUMMER AUTUMN WINTER'.split(), 1):
238 e = Season(i)
239 self.assertEqual(e, getattr(Season, season))
242 self.assertEqual(e.name, season)
243 self.assertIn(e, Season)
244 self.assertIs(type(e), Season)
245 self.assertIsInstance(e, Season)
246 self.assertEqual(str(e), 'Season.' + season)
249 '<Season.{0}: {1}>'.format(season, i),
253 Season = self.Season
254 self.assertEqual(Season.SPRING.name, 'SPRING')
255 self.assertEqual(Season.SPRING.value, 1)
257 Season.SPRING.name = 'invierno'
259 Season.SPRING.value = 2
262 Season = self.Season
264 Season.WINTER = 'really cold'
267 class Season(Enum): class
276 self.assertTrue(hasattr(Season, 'spam'))
277 del Season.spam
278 self.assertFalse(hasattr(Season, 'spam'))
281 del Season.SPRING
283 del Season.DRY
285 del Season.SPRING.name
340 Season = self.Season
341 self.assertIn(Season.AUTUMN, Season)
343 3 in Season
345 'AUTUMN' in Season
347 val = Season(3)
348 self.assertIn(val, Season)
352 self.assertNotIn(OtherEnum.two, Season)
355 Season = self.Season
357 Season.SPRING < Season.WINTER
359 Season.SPRING > 4
361 self.assertNotEqual(Season.SPRING, 1)
368 self.assertNotEqual(Season.SPRING, Part.SPRING)
370 Season.SPRING < Part.CLIP
373 class Season(Enum): class
379 lst = list(Season)
382 [Season.SPRING, Season.SUMMER,
383 Season.AUTUMN, Season.WINTER,
385 self.assertIs(Season.FALL, Season.AUTUMN)
386 self.assertEqual(Season.FALL.value, 3)
387 self.assertEqual(Season.AUTUMN.value, 3)
388 self.assertIs(Season(3), Season.AUTUMN)
389 self.assertIs(Season(1), Season.SPRING)
390 self.assertEqual(Season.FALL.name, 'AUTUMN')
392 [k for k,v in Season.__members__.items() if v.name != k],
435 Season = self.Season
436 self.assertEqual('{}'.format(Season.SPRING),
437 '{}'.format(str(Season.SPRING)))
438 self.assertEqual( '{:}'.format(Season.SPRING),
439 '{:}'.format(str(Season.SPRING)))
440 self.assertEqual('{:20}'.format(Season.SPRING),
441 '{:20}'.format(str(Season.SPRING)))
442 self.assertEqual('{:^20}'.format(Season.SPRING),
443 '{:^20}'.format(str(Season.SPRING)))
444 self.assertEqual('{:>20}'.format(Season.SPRING),
445 '{:>20}'.format(str(Season.SPRING)))
446 self.assertEqual('{:<20}'.format(Season.SPRING),
447 '{:<20}'.format(str(Season.SPRING)))
606 Season = self.Season
608 dates[Season.WINTER] = '1225'
609 dates[Season.SPRING] = '0315'
610 dates[Season.SUMMER] = '0704'
611 dates[Season.AUTUMN] = '1031'
612 self.assertEqual(dates[Season.AUTUMN], '1031')
793 Season = self.Season
794 self.assertTrue(getattr(Season, '__eq__'))
797 class Season(Enum): class
803 list(Season),
804 [Season.SUMMER, Season.WINTER, Season.AUTUMN, Season.SPRING],
809 list(reversed(self.Season)),
810 [self.Season.WINTER, self.Season.AUTUMN, self.Season.SUMMER,
811 self.Season.SPRING]