'Resource traversal which encounters an L{HTTPAuthSessionWrapper}
results in an L{IResource} which renders the L{IResource} avatar
retrieved from the portal when the request has a valid I{Authorization}
header.'

def test_getChildWithDefaultAuthorized(self):

    self.credentialFactories.append(BasicCredentialFactory('example.com'))
    request = self.makeRequest([self.childName])
    child = self._authorizedBasicLogin(request)
    d = request.notifyFinish()
    def cbFinished(ignored):
        self.assertEqual(request.written, [self.childContent])
    d.addCallback(cbFinished)
    request.render(child)
    return d
