#NEWLINE# def force_test( self ) : #NEWLINE# #INDENT# 'Tries to upload a conans exported after than remote version.' #NEWLINE# self . client . run ( ( 'upload %s --all' % str ( self . conan_ref ) ) ) #NEWLINE# self . assertTrue ( os . path . exists ( self . server_reg_folder ) ) #NEWLINE# self . assertTrue ( os . path . exists ( self . server_pack_folder ) ) #NEWLINE# digest_path = os . path . join ( self . client . paths . export ( self . conan_ref ) , CONAN_MANIFEST ) #NEWLINE# old_digest = self . client . paths . load_digest ( self . conan_ref ) #NEWLINE# fake_digest = FileTreeManifest ( 2 , old_digest . file_sums ) #NEWLINE# save ( digest_path , str ( fake_digest ) ) #NEWLINE# self . client . run ( ( 'upload %s' % str ( self . conan_ref ) ) , ignore_error = True ) #NEWLINE# self . assertIn ( 'Remote conans is newer than local conans' , self . client . user_io . out ) #NEWLINE# self . client . run ( ( 'upload %s --force' % str ( self . conan_ref ) ) ) #NEWLINE# self . assertIn ( ( 'Uploading %s' % str ( self . conan_ref ) ) , self . client . user_io . out )