#NEWLINE# def _test_compiled_library( self , tree , clib , spkg , sources , include_dirs ) : #NEWLINE# #INDENT# d = tempfile . mkdtemp ( ) #NEWLINE# try : #NEWLINE# #INDENT# top = create_first_node ( d ) #NEWLINE# create_fake_tree ( top , tree ) #NEWLINE# clibs = subpackage . flatten_subpackage_compiled_libraries ( spkg , top ) #NEWLINE# self . failUnless ( ( 'bar.clib' in clibs ) ) #NEWLINE# clib = clibs [ 'bar.clib' ] #NEWLINE# self . assertEqual ( clib . sources , sources ) #NEWLINE# self . assertEqual ( clib . include_dirs , include_dirs ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( spkg )