#NEWLINE# def test_solr_to_solr( self ) : #NEWLINE# #INDENT# self . _index_docs ( 50000 , self . colls [ 0 ] ) #NEWLINE# reindexer = Reindexer ( source = reindexer . solr , source_coll = 'source_coll' , dest = self . solr , dest_coll = 'dest_coll' ) #NEWLINE# reindexer . reindex ( ) #NEWLINE# self . assertEquals ( self . solr . query ( self . colls [ 0 ] , { #NEWLINE# #INDENT# 'q' : '*:*' , #NEWLINE# 'rows' : 10000000 , #NEWLINE# #UNINDENT# } ) . docs . sort ( key = ( lambda x : x [ 'id' ] ) ) , self . solr . query ( self . colls [ 1 ] , { #NEWLINE# #INDENT# 'q' : '*:*' , #NEWLINE# 'rows' : 10000000 , #NEWLINE# #UNINDENT# } ) . docs . sort ( key = ( lambda x : x [ 'id' ] ) ) )