#NEWLINE# def test_get_merged_dataset_data_is_descending_when_specified_in_params( self ) : #NEWLINE# #INDENT# data = MergedDataset ( [ 'NSE/OIL' , 'GOOG/NASDAQ_AAPL' , 'GOOG/NASDAQ_MSFT' ] ) . data ( params = { #NEWLINE# #INDENT# 'order' : 'desc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# results = data . to_list ( ) #NEWLINE# dates = list ( [ x [ 0 ] for x in results ] ) #NEWLINE# self . assertTrue ( all ( ( ( dates [ i ] >= dates [ ( i + 1 ) ] ) for i in range ( ( len ( dates ) - 1 ) ) ) ) )