#NEWLINE# def test_comment_base( self ) : #NEWLINE# #INDENT# el = self . etree . CommentBase ( 'some text' ) #NEWLINE# self . assertEqual ( self . etree . Comment , el . tag ) #NEWLINE# self . assertEqual ( 'some text' , self . text ) #NEWLINE# root = self . etree . Element ( 'root' ) #NEWLINE# root . append ( el ) #NEWLINE# self . assertEqual ( 'some text' , root [ 0 ] . text )