def test_exhaustedPostPath(self):
        """
        L{getChildForRequest} returns whatever resource has been reached by the
        time the request's C{postpath} is empty.
        """
        request = DummyRequest([])
        resource = Resource()
        result = getChildForRequest(resource, request)
        self.assertIdentical(resource, result)

        L{getChildForRequest} returns whatever resource has been reached by the
        time the request's C{postpath} is empty.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_resource.py