#NEWLINE# def basic_test2( self ) : #NEWLINE# #INDENT# folder = temp_folder ( ) #NEWLINE# paths = StorePaths ( folder ) #NEWLINE# os . chdir ( paths . store ) #NEWLINE# root_folder1 = 'opencv/2.4.10/lasote/testing' #NEWLINE# conan_ref1 = ConanFileReference . loads ( 'opencv/2.4.10@lasote/testing' ) #NEWLINE# artif_id1 = 'awqfwf44we5f425fw' #NEWLINE# artif_id2 = 'b5wc4q5frg45rgv1g' #NEWLINE# artif_id3 = 'cf838regrg783g453' #NEWLINE# reg1 = ( '%s/%s' % ( root_folder1 , EXPORT_FOLDER ) ) #NEWLINE# build1 = ( '%s/%s/%s' % ( root_folder1 , BUILD_FOLDER , artif_id1 ) ) #NEWLINE# artif1 = ( '%s/%s/%s' % ( root_folder1 , PACKAGES_FOLDER , artif_id1 ) ) #NEWLINE# artif2 = ( '%s/%s/%s' % ( root_folder1 , PACKAGES_FOLDER , artif_id2 ) ) #NEWLINE# artif3 = ( '%s/%s/%s' % ( root_folder1 , PACKAGES_FOLDER , artif_id3 ) ) #NEWLINE# os . makedirs ( reg1 ) #NEWLINE# os . makedirs ( build1 ) #NEWLINE# os . makedirs ( artif1 ) #NEWLINE# os . makedirs ( artif2 ) #NEWLINE# os . makedirs ( artif3 ) #NEWLINE# all_artif = [ _artif for _artif in sorted ( paths . conan_packages ( conan_ref1 ) ) ] #NEWLINE# self . assertEqual ( all_artif , [ artif_id1 , artif_id2 , artif_id3 ] ) #NEWLINE# root_folder2 = 'sdl/1.5/lasote/stable' #NEWLINE# conan_ref2 = ConanFileReference . loads ( 'sdl/1.5@lasote/stable' ) #NEWLINE# os . makedirs ( ( '%s/%s' % ( root_folder2 , EXPORT_FOLDER ) ) ) #NEWLINE# root_folder3 = 'assimp/0.14/phil/testing' #NEWLINE# conan_ref3 = ConanFileReference . loads ( 'assimp/0.14@phil/testing' ) #NEWLINE# os . makedirs ( ( '%s/%s' % ( root_folder3 , EXPORT_FOLDER ) ) ) #NEWLINE# root_folder4 = 'sdl/2.10/lasote/stable' #NEWLINE# conan_ref4 = ConanFileReference . loads ( 'sdl/2.10@lasote/stable' ) #NEWLINE# os . makedirs ( ( '%s/%s' % ( root_folder4 , EXPORT_FOLDER ) ) ) #NEWLINE# root_folder5 = 'SDL_fake/1.10/lasote/testing' #NEWLINE# conan_ref5 = ConanFileReference . loads ( 'SDL_fake/1.10@lasote/testing' ) #NEWLINE# os . makedirs ( ( '%s/%s' % ( root_folder5 , EXPORT_FOLDER ) ) ) #NEWLINE# disk_adapter = DiskAdapter ( '' , paths . store , None ) #NEWLINE# file_manager = FileManager ( paths , disk_adapter ) #NEWLINE# reg_conans = sorted ( [ str ( _reg ) for _reg in file_manager . _exported_conans ( ) ] ) #NEWLINE# self . assertEqual ( reg_conans , [ str ( conan_ref5 ) , str ( conan_ref3 ) , str ( conan_ref1 ) , str ( conan_ref2 ) , str ( conan_ref4 ) ] ) #NEWLINE# reg_conans = sorted ( [ str ( _reg ) for _reg in file_manager . _exported_conans ( pattern = 'sdl*' ) ] ) #NEWLINE# self . assertEqual ( reg_conans , [ str ( conan_ref5 ) , str ( conan_ref2 ) , str ( conan_ref5 ) ] ) #NEWLINE# self . assertEqual ( str ( file_manager . _exported_conans ( pattern = 'SDL*' , ignorecase = False ) [ 0 ] ) , str ( conan_ref5 ) )