#NEWLINE# def test_to_csv_returns_expected_csv( self ) : #NEWLINE# #INDENT# datatable = Datatable ( 'ZACKS/FC' ) #NEWLINE# results = Data . page ( datatable , params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# data = results . to_csv ( ) #NEWLINE# expected = ( ( ( ( 'None,per_end_date,ticker,tot_oper_exp\n' + '0,2015-07-11,AAPL,456.9\n' ) + '1,2015-07-13,433.3,\n' ) + '2,2015-07-14,AAPL,419.1\n' ) + '3,2015-07-15,476.5,\n' ) #NEWLINE# self . assertEqual ( data , expected )