Searched refs:lookup_by_number (Results 1 – 3 of 3) sorted by relevance
296 value = enum_definition.lookup_by_number(number)
387 def lookup_by_number(cls, number): member in _EnumClass429 return cls.lookup_by_number(index)
127 self.assertRaises(KeyError, Color.lookup_by_number, 'RED')128 self.assertEquals(Color.RED, Color.lookup_by_number(20))129 self.assertRaises(KeyError, Color.lookup_by_number, Color.RED)