#NEWLINE# def test_build_filter_2( self ) : #NEWLINE# #INDENT# criteria = 'configuration/system' #NEWLINE# filter = ( 'xpath' , criteria ) #NEWLINE# reply = build_filter ( filter ) #NEWLINE# call = ElementTree . tostring ( reply , method = 'xml' ) #NEWLINE# node = new_ele ( 'filter' , type = 'xpath' ) #NEWLINE# node . attrib [ 'select' ] = node #NEWLINE# self . assertEqual ( call , ElementTree . tostring ( node , method = 'xml' ) )