#NEWLINE# @ mock . patch ( 'runabove.storage.ContainerManager._swift_call' ) #NEWLINE# def test_copy_object_other_container( self , mock_swift_call ) : #NEWLINE# #INDENT# self . containers . copy_object ( self . region , self . name , 'Test' , to_container = 'test1' ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'X-Copy-From' : ( ( '/' + self . name ) + '/Test' ) , #NEWLINE# 'content-length' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# mock_swift_call . assert_called_once_with ( self . region , 'put_object' , 'test1' , 'Test' , None , headers = headers )