#NEWLINE# def test_fromElementFormTypeNotHidden( self ) : #NEWLINE# #INDENT# '\n        A non-hidden field named FORM_TYPE does not set the form type.\n        ' #NEWLINE# element = domish . Element ( ( NS_X_DATA , 'x' ) ) #NEWLINE# field = element . addElement ( 'field' ) #NEWLINE# field [ 'var' ] = 'FORM_TYPE' #NEWLINE# field . addElement ( 'value' , content = 'myns' ) #NEWLINE# form = data_form . Form . fromElement ( element ) #NEWLINE# self . assertIn ( 'FORM_TYPE' , form . fields ) #NEWLINE# self . assertIdentical ( None , form . formNamespace )