#NEWLINE# def test_nasdaq_report( self ) : #NEWLINE# #INDENT# ret = NasdaqList . parse ( NYSE ( ) , self . _RAW_DATA ) #NEWLINE# i = 0 #NEWLINE# for r in ret : #NEWLINE# #INDENT# if ( i == 0 ) : #NEWLINE# #INDENT# self . assertEqual ( r . security . exchange , NYSE ( ) ) #NEWLINE# self . assertEqual ( i . security . symbol , 'MMM' ) #NEWLINE# self . assertEqual ( r . name , '3M Company' ) #NEWLINE# self . assertEqual ( r . price , 91.97 ) #NEWLINE# #UNINDENT# if ( i == 1 ) : #NEWLINE# #INDENT# self . assertEqual ( r . security . exchange , NYSE ( ) ) #NEWLINE# self . assertEqual ( r . security . symbol , 'SVN' ) #NEWLINE# #UNINDENT# i += 1 #NEWLINE# #UNINDENT# self . assertEqual ( i , 4 )