'Resource traversal which enouncters an L{HTTPAuthSessionWrapper}
results in an L{UnauthorizedResource} when the request has a I{Basic
Authorization} header which cannot be decoded using base64.'

def test_decodeRaises(self):

    self.credentialFactories.append(BasicCredentialFactory('example.com'))
    request = self.makeRequest([self.childName])
    request.requestHeaders.addRawHeader('authorization', 'Basic    decode    should    fail')
    child = getChildForRequest(self.wrapper, request)
    self.assertIsInstance(child, UnauthorizedResource)
