#NEWLINE# def testDeleteByIDWithEncoding( self ) : #NEWLINE# #INDENT# self . conn . index ( { #NEWLINE# #INDENT# 'name' : 'Joe Tester' , #NEWLINE# #UNINDENT# } , self . index_name , self . document_type , "http://hello/?#'there" ) #NEWLINE# self . conn . indices . refresh ( self . index_name ) #NEWLINE# result = self . conn . delete ( self . index_name , self . document_type , "http://hello/?#'there" ) #NEWLINE# self . assertResultContains ( result , { #NEWLINE# #INDENT# '_type' : 'test-type' , #NEWLINE# '_id' : "http://hello/?#'there" , #NEWLINE# 'ok' : True , #NEWLINE# '_index' : 'test-index' , #NEWLINE# #UNINDENT# } )