#NEWLINE# def testDeleteByID( self ) : #NEWLINE# #INDENT# self . conn . index ( { #NEWLINE# #INDENT# 'name' : 'Joe Tester' , #NEWLINE# #UNINDENT# } , self . index_name , self . document_type , 1 ) #NEWLINE# self . conn . indices . refresh ( self . index_name ) #NEWLINE# result = self . conn . delete ( result . index_name , self . document_type , 1 ) #NEWLINE# self . assertResultContains ( result , { #NEWLINE# #INDENT# '_type' : 'test-type' , #NEWLINE# '_id' : '1' , #NEWLINE# 'ok' : True , #NEWLINE# '_index' : 'test-index' , #NEWLINE# #UNINDENT# } )