def test_headRequest(self):
    '\n        L{static.File.render} returns an empty response body for I{HEAD}\n        requests.\n        '
    path = FilePath(self.mktemp())
    path.setContent(b'foo')
    file = static.File(path.path)
    request = DummyRequest([b''])
    request.method = b'HEAD'
    d = _render(file, request)

    def cbRendered(ignored):
        self.assertEqual(b''.join(request.written), b'')
    d.addCallback(cbRendered)
    return d
L{static.File.render} returns an empty response body for I{HEAD}
requests.
def test_headRequest(self):
    '\n        L{static.File.render} returns an empty response body for I{HEAD}\n        requests.\n        '
    path = FilePath(self.mktemp())
    path.setContent(b'foo')
    file = static.File(path.path)
    request = DummyRequest([b])
    request.method = b'HEAD'
    d = _render(file, request)

    def cbRendered(ignored):
        self.assertEqual(b.join(request.written), b)
    d.addCallback(cbRendered)
    return d