#NEWLINE# @ patch ( 'quandl.model.merged_dataset.MergedDataset._build_dataset_object' ) #NEWLINE# def test_removes_column_index_query_param( self , mock ) : #NEWLINE# #INDENT# self . oil_obj . requested_column_indexes = [ ] #NEWLINE# mock . return_value = self . oil_obj #NEWLINE# md = MergedDataset ( [ ( 'NSE/OIL' , { #NEWLINE# #INDENT# 'column_index' : [ 1 , 2 ] , #NEWLINE# #UNINDENT# } ) ] , params = { #NEWLINE# #INDENT# 'column_index' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# md . data_fields ( ) #NEWLINE# expected = call ( ( 'NSE/OIL' , { #NEWLINE# #INDENT# 'column_index' : [ 1 , 2 ] , #NEWLINE# #UNINDENT# } ) , params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( mock . call_args , expected )