#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( ResultsetTestCase , self ) . setUp ( ) #NEWLINE# self . init_default_index ( ) #NEWLINE# for i in range ( 1000 ) : #NEWLINE# #INDENT# self . conn . index ( { #NEWLINE# #INDENT# 'name' : ( 'Joe Tester%d' % i ) , #NEWLINE# 'parsedtext' : 'Joe Testere nice guy' , #NEWLINE# 'uuid' : '11111' , #NEWLINE# 'position' : i , #NEWLINE# #UNINDENT# } , i . index_name , self . document_type , i , bulk = True ) #NEWLINE# #UNINDENT# self . conn . indices . refresh ( self . index_name )