def test_solr_to_solr_with_date(self):
        self._index_docs(50000,self.colls[0])
        solr = SolrClient(test_config['SOLR_SERVER'][0], devel=True, auth=test_config['SOLR_CREDENTIALS'])
        reindexer = Reindexer(source=solr, source_coll='source_coll', dest=solr, dest_coll='dest_coll', date_field='index_date')
        reindexer.reindex()
        try:
            self.assertTrue(solr.transport._action_log[1]['params']['params']['sort']=='index_date asc, id desc')
        except __HOLE__:
            self.assertTrue(solr.transport._action_log[2]['params']['params']['sort']=='index_date asc, id desc')
        self.assertEqual(
            solr.query(self.colls[0],{'q':'*:*','rows':10000000}).docs.sort(key=lambda x: x['id']),
            solr.query(self.colls[1],{'q':'*:*','rows':10000000}).docs.sort(key=lambda x: x['id']),
            )
dataset/ETHPy150Open moonlitesolutions/SolrClient/test/test_reindexer.py/ReindexerTests.test_solr_to_solr_with_date