def METHOD_NAME(self):
    user = User.objects.create_user(username='notallowed', email='notallowed@example.com', password='notallowed')
    self.client.force_login(user)
    response = self.client.get(reverse('admin-user-change-password', kwargs={'pk': user.id}))
    self.assertEqual(response.status_code, 302)
    response = self.client.get(reverse('user-delete', kwargs={'pk': user.id}))
    self.assertEqual(response.status_code, 302)