#NEWLINE# def test_serialize_ParseResult( self ) : #NEWLINE# #INDENT# import urlparse #NEWLINE# url = self . _makeOne ( ) #NEWLINE# inp = urlparse . ParseResult ( scheme = 'http' , netloc = 'foo.com' , path = '/asdf' , params = '' , query = 'x=y&b=z' , fragment = '' ) #NEWLINE# result = url . serialize ( None , inp ) #NEWLINE# self . assertEqual ( result , 'http://foo.com/asdf?x=y&b=z' )