def test_self(self):
        self.client.login(username='user1', password='user1')

        response = self.get_response(self.user.id)
        self.assertEqual(response.status_code, 204)
        self.assertFalse(User.objects.filter(id=self.user.id).exists())
It should allow a user to delete themself.
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_user.py/UserDetailDeleteTestCase.test_self