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

        self.client.login(username='user2', password='user2')
        response = self.get_response(user1.id)

        self.assertPermissionDenied(response)
It should reject request from another user.
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_user.py/UserDetailGetTestCase.test_other_user