'L{client.getPage} returns a L{Deferred} which is called back with
the empty string if the method is C{HEAD} and there is a successful
response code.'

def test_getPageHead(self):

    def _getPage(method):
        return getPage(self.getURL('file'), method=method)
    return defer.gatherResults([_getPage('head').addCallback(self.assertEqual, ''), _getPage('HEAD').addCallback(self.assertEqual, '')])
