def METHOD_NAME(self):
    # Like DRF's AnonRateThrottleTests.test_authenticated_user_not_affected
    # except that we should get a cache key regardless of whether the user
    # is authenticated or not.
    request = APIRequestFactory().get('/')
    user = user_factory()
    force_authenticate(request, user)
    request.user = user
    request.META['REMOTE_ADDR'] = '123.45.67.89'
    expected_key = 'throttle_anon_123.45.67.89'
    assert self.throttle.get_cache_key(request, view={}) == expected_key