#NEWLINE# def test_include( ) : #NEWLINE# #INDENT# ffi = FFI ( ) #NEWLINE# ffi . cdef ( '#define ABC 123' ) #NEWLINE# ffi . set_source ( 'test_include' , None ) #NEWLINE# target = udir . join ( 'test_include.py' ) #NEWLINE# make_py_source ( ffi2 , 'test_include' , str ( target ) ) #NEWLINE# assert ( target . read ( ) == "# auto-generated file\nimport _cffi_backend\n\nffi = _cffi_backend.FFI('test_include',\n    _version = 0x2601,\n    _types = b'',\n    _globals = (b'\\xFF\\xFF\\xFF\\x1FABC',123,),\n)\n" ) #NEWLINE# ffi2 = FFI ( ) #NEWLINE# ffi2 . include ( ffi ) #NEWLINE# target2 = udir . join ( 'test2_include.py' ) #NEWLINE# make_py_source ( ffi2 , 'test2_include' , str ( target2 ) ) #NEWLINE# assert ( target2 . read ( ) == "# auto-generated file\nimport _cffi_backend\nfrom test_include import ffi as _ffi0\n\nffi = _cffi_backend.FFI('test2_include',\n    _version = 0x2601,\n    _types = b'',\n    _includes = (_ffi0,),\n)\n" )