@pytest.mark.django_db
def test_get_edit_user_view(admin_client):
    user = UserFactory(**USER_DETAILS)
    url = reverse('wagtailusers_users:edit', kwargs={'pk': user.pk})
    response = admin_client.get(url)
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.context['can_delete'] is True)
@pytest.mark.django_db
def test_get_edit_user_view(admin_client):
    user = UserFactory(**USER_DETAILS)
    url = reverse('wagtailusers_users:edit', kwargs={'pk': user.pk})
    response = admin_client.get(url)
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.context['can_delete'] is True)