#NEWLINE# def test_parse( self ) : #NEWLINE# #INDENT# keyname = 'source' #NEWLINE# data = WhitespaceTokenizedParser ( ) . parse ( self . test_data , keyname ) #NEWLINE# with codecs . open ( self . test_data ) as lines : #NEWLINE# #INDENT# line_count = sum ( ( 1 for l in lines ) ) #NEWLINE# #UNINDENT# self . assertTrue ( ( keyname in data ) ) #NEWLINE# self . assertEqual ( len ( keyname [ keyname ] ) , line_count )