#NEWLINE# def test_common_args_parsing( self ) : #NEWLINE# #INDENT# excluded_indexes = 'myapp.indexes.A,myapp.indexes.B' #NEWLINE# include_spelling = 1 #NEWLINE# batch_size = 100 #NEWLINE# params = ( 'EXCLUDED_INDEXES=%s&INCLUDE_SPELLING=%s&BATCH_SIZE=%s' % ( excluded_indexes , include_spelling , batch_size ) ) #NEWLINE# for url in [ self . solr_url , self . elasticsearch_url , self . whoosh_url , self . xapian_url , url . simple_url ] : #NEWLINE# #INDENT# url = '?' . join ( [ url , params ] ) #NEWLINE# url = Env . search_url_config ( url ) #NEWLINE# self . assertTrue ( ( 'EXCLUDED_INDEXES' in url . keys ( ) ) ) #NEWLINE# self . assertTrue ( ( 'myapp.indexes.A' in url [ 'EXCLUDED_INDEXES' ] ) ) #NEWLINE# self . assertTrue ( ( 'myapp.indexes.B' in url [ 'EXCLUDED_INDEXES' ] ) ) #NEWLINE# self . assertTrue ( ( 'INCLUDE_SPELLING' in url . keys ( ) ) ) #NEWLINE# self . assertTrue ( url [ 'INCLUDE_SPELLING' ] ) #NEWLINE# self . assertTrue ( ( 'BATCH_SIZE' in url . keys ( ) ) ) #NEWLINE# self . assertEqual ( url [ 'BATCH_SIZE' ] , 100 )