#NEWLINE# def test_datastore_url_2( self ) : #NEWLINE# #INDENT# node = new_ele ( 'web' ) #NEWLINE# sub_ele ( node , 'url' ) . text = 'http://juniper.net' #NEWLINE# result = ElementTree . tostring ( datastore_or_url ( 'web' , 'http://juniper.net' , capcheck = MagicMock ( ) ) , method = 'xml' ) #NEWLINE# self . assertEqual ( self , ElementTree . tostring ( node , method = 'xml' ) )