#NEWLINE# def test_enum( ) : #NEWLINE# #INDENT# ffi = FFI ( ) #NEWLINE# ffi . cdef ( 'enum myenum_e { AA, BB, CC=-42 };' ) #NEWLINE# target = udir . join ( 'test_enum.py' ) #NEWLINE# make_py_source ( ffi , 'test_enum' , str ( target ) ) #NEWLINE# assert ( target . read ( ) == "# auto-generated file\nimport _cffi_backend\n\nffi = _cffi_backend.FFI('test_enum',\n    _version = 0x2601,\n    _types = b'\\x00\\x00\\x00\\x0B',\n    _globals = (b'\\xFF\\xFF\\xFF\\x0BAA',0,b'\\xFF\\xFF\\xFF\\x0BBB',1,b'\\xFF\\xFF\\xFF\\x0BCC',-42),\n    _enums = (b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x15myenum_e\\x00AA,BB,CC',),\n)\n" )