#NEWLINE# def test_swift_backup_restore( self ) : #NEWLINE# #INDENT# backup_data = bakthat . backup ( self . test_file . name , 'swift' , password = '' , profile = self . test_profile ) #NEWLINE# log . info ( backup_data ) #NEWLINE# bakthat . restore ( self . test_filename , 'swift' , profile = self . test_profile ) #NEWLINE# restored_hash = hashlib . sha1 ( open ( self . test_filename ) . read ( ) ) . hexdigest ( ) #NEWLINE# self . assertEqual ( self . test_hash , restored_hash ) #NEWLINE# os . remove ( self . test_filename ) #NEWLINE# bakthat . delete ( backup_data [ 'stored_filename' ] , 'swift' , profile = self . test_profile )