def METHOD_NAME(self, rf):
    UserFactory()
    url = reverse("api:profiles-user-self")
    request = rf.get(url)
    response = UserProfileViewSet.as_view(actions={"get": "self"})(request)
    assert response.status_code == 200
    assert response.data["user"] == {"username": "AnonymousUser"}