#NEWLINE# def test_prePathURLQuoting( self ) : #NEWLINE# #INDENT# '\n        L{Request.prePathURL} quotes special characters in the URL segments to\n        preserve the original meaning.\n        ' #NEWLINE# d = DummyChannel ( ) #NEWLINE# request = server . Request ( self , 1 ) #NEWLINE# request . setHost ( 'example.com' , 80 ) #NEWLINE# request . gotLength ( 0 ) #NEWLINE# request . requestReceived ( 'GET' , '/foo%2Fbar' , 'HTTP/1.0' ) #NEWLINE# self . assertEqual ( request . prePathURL ( ) , 'http://example.com/foo%2Fbar' )