Lines Matching full:season

157         class Season(Enum):  class
162 self.Season = Season
193 Season = self.Season
195 set(dir(Season)),
201 Season = self.Season
203 set(dir(Season.WINTER)),
259 Season.SPRING > 4
260 Season = self.Season
261 self.assertNotEqual(Season.SPRING, 1)
269 self.assertNotEqual(Season.SPRING, Part.SPRING)
271 Season.SPRING < Part.CLIP
275 Season = self.Season
276 self.assertTrue(Season(Season.WINTER) is Season.WINTER)
279 Season = self.Season
280 self.assertEqual(Season.SPRING.value, 1)
286 Season = self.Season
287 lst = list(Season)
288 self.assertEqual(len(lst), len(Season))
289 self.assertEqual(len(Season), 4, Season)
291 [Season.SPRING, Season.SUMMER, Season.AUTUMN, Season.WINTER], lst)
293 for i, season in enumerate('SPRING SUMMER AUTUMN WINTER'.split()):
295 e = Season(i)
296 self.assertEqual(e, getattr(Season, season))
299 self.assertEqual(e.name, season)
300 self.assertTrue(e in Season)
301 self.assertTrue(type(e) is Season)
302 self.assertTrue(isinstance(e, Season))
303 self.assertEqual(str(e), 'Season.' + season)
306 '<Season.%s: %s>' % (season, i),
310 Season = self.Season
311 self.assertEqual(Season.SPRING.name, 'SPRING')
312 self.assertEqual(Season.SPRING.value, 1)
317 self.assertRaises(AttributeError, set_name, Season.SPRING, 'invierno', )
318 self.assertRaises(AttributeError, set_value, Season.SPRING, 2)
321 class Season(Enum): class
330 self.assertTrue(hasattr(Season, 'spam'))
331 del Season.spam
332 self.assertFalse(hasattr(Season, 'spam'))
334 self.assertRaises(AttributeError, delattr, Season, 'SPRING')
335 self.assertRaises(AttributeError, delattr, Season, 'DRY')
336 self.assertRaises(AttributeError, delattr, Season.SPRING, 'name')
362 Season = self.Season
363 self.assertTrue(Season.AUTUMN in Season)
364 self.assertTrue(3 not in Season)
366 val = Season(3)
367 self.assertTrue(val in Season)
371 self.assertTrue(OtherEnum.two not in Season)
376 Season = self.Season
377 self.assertEqual('{0}'.format(Season.SPRING),
378 '{0}'.format(str(Season.SPRING)))
379 self.assertEqual( '{0:}'.format(Season.SPRING),
380 '{0:}'.format(str(Season.SPRING)))
381 self.assertEqual('{0:20}'.format(Season.SPRING),
382 '{0:20}'.format(str(Season.SPRING)))
383 self.assertEqual('{0:^20}'.format(Season.SPRING),
384 '{0:^20}'.format(str(Season.SPRING)))
385 self.assertEqual('{0:>20}'.format(Season.SPRING),
386 '{0:>20}'.format(str(Season.SPRING)))
387 self.assertEqual('{0:<20}'.format(Season.SPRING),
388 '{0:<20}'.format(str(Season.SPRING)))
446 Season = self.Season
448 dates[Season.WINTER] = '1225'
449 dates[Season.SPRING] = '0315'
450 dates[Season.SUMMER] = '0704'
451 dates[Season.AUTUMN] = '1031'
452 self.assertEqual(dates[Season.AUTUMN], '1031')
456 class Season(Enum): class
462 lst = list(Season)
465 [Season.SPRING, Season.SUMMER,
466 Season.AUTUMN, Season.WINTER,
468 self.assertTrue(Season.FALL is Season.AUTUMN)
469 self.assertEqual(Season.FALL.value, 3)
470 self.assertEqual(Season.AUTUMN.value, 3)
471 self.assertTrue(Season(3) is Season.AUTUMN)
472 self.assertTrue(Season(1) is Season.SPRING)
473 self.assertEqual(Season.FALL.name, 'AUTUMN')
475 set([k for k,v in Season.__members__.items() if v.name != k]),
692 Season = self.Season
693 self.assertTrue(getattr(Season, '__hash__'))
696 class Season(Enum): class
703 list(Season),
704 [Season.SUMMER, Season.WINTER, Season.AUTUMN, Season.SPRING],
709 list(reversed(self.Season)),
710 [self.Season.WINTER, self.Season.AUTUMN, self.Season.SUMMER,
711 self.Season.SPRING]