mojo/public/tools/mojom/enum_unittest.py
def testConstantReference(self):
    """Verifies that an enum value can be assigned from the value of an
    integral constant within the same module."""
    types = self.ExtractTypes('const int32 kFoo = 42; enum E { kA = kFoo };')
    self.assertEqual(42, types['E'].fields[0].numeric_value)
Verifies that an enum value can be assigned from the value of an
    integral constant within the same module.
Verifies that an enum value can be assigned from the value of an
integral constant within the same module.
Verifies that an enum value can be assigned from the value of an integral constant within the same module .
def testConstantReference(self):
    types = self.ExtractTypes('const int32 kFoo = 42; enum E { kA = kFoo };')
    self.assertEqual(42, types['E'].fields[0].numeric_value)
def testConstantReference ( self ) : types = self . ExtractTypes ( 'const int32 kFoo = 42; enum E { kA = kFoo };' ) self . assertEqual ( 42 , types [ 'E' ] . fields [ 0 ] . numeric_value )
Verifies that an enum value can be assigned from the value of an
integral constant within the same module.
Verifies that an enum value can be assigned from the value of an integral constant within the same module .
"""Verifies that an enum value can be assigned from the value of an
    integral constant within the same module."""
self