'ConditionalGetMiddleware shouldn\'t compute and return an ETag on a
HEAD request since it can\'t do so accurately without access to the
response body of the corresponding GET.'

def test_no_head(self):

    request = RequestFactory().head('/')
    response = HttpResponse(status=200)
    conditional_get_response = ConditionalGetMiddleware().process_response(request, response)
    self.assertNotIn('ETag', conditional_get_response)
