'As path segments from the request are traversed, they are taken from
C{postpath} and put into C{prepath}.'

def test_postPathToPrePath(self):

    request = DummyRequest(['foo', 'bar'])
    root = Resource()
    child = Resource()
    child.isLeaf = True
    root.putChild('foo', child)
    self.assertIdentical(child, getChildForRequest(root, request))
    self.assertEqual(request.prepath, ['foo'])
    self.assertEqual(request.postpath, ['bar'])
