'If the file in the filesystem which would satisfy a request cannot be
read, L{File.render} sets the HTTP response code to I{FORBIDDEN}.'

def test_forbiddenResource(self):

    base = FilePath(self.mktemp())
    base.setContent('')
    self.addCleanup(base.chmod, 448)
    base.chmod(0)
    file = static.File(base.path)
    request = DummyRequest([''])
    d = self._render(file, request)
    def cbRendered(ignored):
        self.assertEqual(request.responseCode, 403)
    d.addCallback(cbRendered)
    return d
