#NEWLINE# def testIndexingWithoutID( self ) : #NEWLINE# #INDENT# 'Testing an indexing given without ID' #NEWLINE# result = self . conn . index ( { #NEWLINE# #INDENT# 'name' : 'Joe Tester' , #NEWLINE# #UNINDENT# } , self . index_name , self . document_type ) #NEWLINE# self . assertResultContains ( result , { #NEWLINE# #INDENT# '_type' : 'test-type' , #NEWLINE# 'ok' : True , #NEWLINE# '_index' : 'test-index' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( ( ( '_id' in result . keys ( ) ) and result [ '_id' ] ) )