

def test_prePathURL(self):
    '\n        Verify that L{FakeRequest.prePathURL} returns the prepath of the\n        requested URL.\n        '
    req = FakeRequest(currentSegments=['a'], uri='/a/b')
    self.assertEqual(req.prePathURL(), 'http://localhost/a')

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py TestFakeRequest.test_prePathURL/original