Home
last modified time | relevance | path

Searched refs:lookup_by_number (Results 1 – 3 of 3) sorted by relevance

/external/python/apitools/apitools/base/protorpclite/
Ddescriptor.py296 value = enum_definition.lookup_by_number(number)
Dmessages.py387 def lookup_by_number(cls, number): member in _EnumClass
429 return cls.lookup_by_number(index)
Dmessages_test.py127 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)