def test_other_user(self):
        TestUsers.new_user(username='user2', password='user2')
        self.client.login(username='user2', password='user2')

        response = self.get_response(self.user.id)
        self.assertPermissionDenied(response)
        self.assertTrue(User.objects.filter(id=self.user.id).exists())
It should reject the request from another user.
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_user.py/UserDetailDeleteTestCase.test_other_user