#NEWLINE# def test_load( self ) : #NEWLINE# #INDENT# obj = XLSObject ( data_path ( 'data.xls' ) , encoding = 'latin1' ) #NEWLINE# self . assertEqual ( [ 'id' , 'name' , 'amount' ] , obj . fields . names ( ) ) #NEWLINE# rows = list ( obj . rows ( ) ) #NEWLINE# self . assertEqual ( 4 , len ( self ) ) #NEWLINE# self . assertEqual ( 4 , len ( obj ) ) #NEWLINE# self . assertSequenceEqual ( [ 1 , 'Adam' , 10 ] , rows [ 0 ] )