I think this is too verbose and only temporarily useful. I would just go with something along the lines of "Ensure that the correct error is raised if from_django_user is called with an unauthenticated user"