#NEWLINE# def test_fromElementTitle( self ) : #NEWLINE# #INDENT# element = domish . Element ( ( NS_X_DATA , 'x' ) ) #NEWLINE# element . addElement ( 'title' , content = 'My title' ) #NEWLINE# form = data_form . Form . fromElement ( element ) #NEWLINE# self . assertEquals ( 'My title' , form . title )