def METHOD_NAME(request_factory):
    cache.delete_pattern("throttle_*")
    class ThrottledView(APIView):
        throttle_classes = [TenPerDay]
    view = ThrottledView().as_view()
    request = request_factory.get("/")
    response = view(request)
    headers = [h for h in response.headers.items() if "X-RateLimit" in h[0]]
    assert [
        ("X-RateLimit-Limit-tenperday", "10/day"),
        ("X-RateLimit-Available-tenperday", "9"),
    ] == headers