#NEWLINE# def test_data_returned_are_data_objects( self ) : #NEWLINE# #INDENT# results = Data . all ( params = { #NEWLINE# #INDENT# 'database_code' : 'NSE' , #NEWLINE# 'dataset_code' : 'OIL' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( len ( results ) , 4 ) #NEWLINE# for result in results : #NEWLINE# #INDENT# self . assertIsInstance ( result , Data )