'Resource traversal which encounters an L{HTTPAuthSessionWrapper}
results in an L{UnauthorizedResource} instance when the request does
not have the required I{Authorization} headers.'

def test_getChildWithDefault(self):

    request = self.makeRequest([self.childName])
    child = getChildForRequest(self.wrapper, request)
    d = request.notifyFinish()
    def cbFinished(result):
        self.assertEqual(request.responseCode, 401)
    d.addCallback(cbFinished)
    request.render(child)
    return d
