#NEWLINE# def test_struct_included( ) : #NEWLINE# #INDENT# baseffi = FFI ( ) #NEWLINE# baseffi . cdef ( 'struct foo_s { int x; };' ) #NEWLINE# baseffi . set_source ( 'test_struct_included_base' , None ) #NEWLINE# ffi = FFI ( ) #NEWLINE# ffi . include ( baseffi ) #NEWLINE# target = udir . join ( 'test_struct_included.py' ) #NEWLINE# make_py_source ( ffi , 'test_struct_included' , str ( baseffi ) ) #NEWLINE# assert ( target . read ( ) == "# auto-generated file\nimport _cffi_backend\nfrom test_struct_included_base import ffi as _ffi0\n\nffi = _cffi_backend.FFI('test_struct_included',\n    _version = 0x2601,\n    _types = b'\\x00\\x00\\x00\\x09',\n    _struct_unions = ((b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x08foo_s',),),\n    _includes = (_ffi0,),\n)\n" )