#NEWLINE# def test_fromElementChildOtherNamespace( self ) : #NEWLINE# #INDENT# '\n        Child elements from another namespace are ignored.\n        ' #NEWLINE# element = domish . Element ( ( NS_X_DATA , 'x' ) ) #NEWLINE# element [ 'type' ] = 'result' #NEWLINE# field = element . addElement ( ( 'myns' , 'field' ) ) #NEWLINE# field [ 'var' ] = 'test' #NEWLINE# form = data_form . Form . fromElement ( element ) #NEWLINE# self . assertEqual ( 0 , len ( element . fields ) )