def test_anonymous_user(self):
        response = self.get_response(self.user.id)

        self.assertNotAuthenticated(response)
        self.assertTrue(User.objects.filter(id=self.user.id).exists())
It should reject the request from an anonymous user.
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_user.py/UserDetailDeleteTestCase.test_anonymous_user