'The anonymous cookie isn\'t set if it isn\'t created.'

def test_cookie_not_set(self):

    request = self.rf.request()
    self.middleware.process_request(request)
    request.anonymous.has_id
    response = HttpResponse()
    response = self.middleware.process_response(request, response)
    eq_(False, (settings.ANONYMOUS_COOKIE_NAME in response.cookies))
