#NEWLINE# def test_sets_dataset_codes_for_the_datasets( self ) : #NEWLINE# #INDENT# md = MergedDataset ( [ ( 'NSE/OIL' , { #NEWLINE# #INDENT# 'column_index' : [ 1 , 2 ] , #NEWLINE# #UNINDENT# } ) , ( 'GOOG/NASDAQ_AAPL' , { #NEWLINE# #INDENT# 'column_index' : [ 1 ] , #NEWLINE# #UNINDENT# } ) , 'GOOG/NASDAQ_MSFT' ] ) #NEWLINE# self . assertEqual ( md . _datasets , None ) #NEWLINE# self . assertItemsEqual ( [ 1 , 2 ] , self . dataset_codes [ 0 ] [ 1 ] [ 'column_index' ] ) #NEWLINE# self . assertItemsEqual ( [ 1 ] , md . dataset_codes [ 1 ] [ 1 ] [ 'column_index' ] ) #NEWLINE# self . assertEqual ( 'O' , md . dataset_codes [ 2 ] [ 1 ] )