def METHOD_NAME(self):
    p = ProfileFactory()
    self.client.force_authenticate(user=p.user)
    url = reverse("user-detail", args=[p.user.username])
    res = self.client.delete(url)
    self.assertEqual(res.status_code, 405)