'L{Request.prePathURL} quotes special characters in the URL segments to
preserve the original meaning.'

def test_prePathURLQuoting(self):

    d = DummyChannel()
    request = server.Request(d, 1)
    request.setHost('example.com', 80)
    request.gotLength(0)
    request.requestReceived('GET', '/foo%2Fbar', 'HTTP/1.0')
    self.assertEqual(request.prePathURL(), 'http://example.com/foo%2Fbar')
