'Test page with login at /admin/user/delete'

def test_core_user_delete(self):

    name = 'newuser'
    password = 'newuserpsw'
    (user, created) = DjangoUser.objects.get_or_create(username=name)
    if created:
        user.set_password(password)
        user.save()
    response = self.client.post(path=reverse('core_admin_user_delete', args=[user.profile.id]), data={'delete': ''})
    self.assertRedirects(response, reverse('core_admin_index_users'))
    with self.assertRaises(User.DoesNotExist):
        User.objects.get(name=name)
    with self.assertRaises(DjangoUser.DoesNotExist):
        DjangoUser.objects.get(username=name)
