'Test caching of HEAD requests'

def test_head_caching(self):

    response = self.client.head(u'/cache')
    cache.set(u'key', response)
    cached_response = cache.get(u'key')
    assert isinstance(cached_response, Response)
    assert (cached_response.content == response.content)
    assert (cached_response.status_code == response.status_code)
