def test_headRequest(self):
    '\n        L{Data.render} returns an empty response body for a I{HEAD} request.\n        '
    data = static.Data(b'foo', 'bar')
    request = DummyRequest([''])
    request.method = b'HEAD'
    d = _render(data, request)

    def cbRendered(ignored):
        self.assertEqual(b''.join(request.written), b'')
    d.addCallback(cbRendered)
    return d
L{Data.render} returns an empty response body for a I{HEAD} request.
def test_headRequest(self):
    '\n        \n        '
    data = static.Data(b'foo', 'bar')
    request = DummyRequest([])
    request.method = b'HEAD'
    d = _render(data, request)

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