def METHOD_NAME(
    render_mock,
    admin_client,
    locale_a,
    project_locale_a,
    resource_a,  # required for project_locale_a to work
    translators,
):
    """
    Translators and managers of a locale should be sorted by email in
    "Permissions" tab.
    """
    project_locale_a.translators_group.user_set.add(*translators)
    admin_client.get("/%s/ajax/permissions/" % locale_a.code)
    response_context = render_mock.call_args[0][2]
    locale_projects = response_context["locale_projects"]
    # Check project_locale id in the permissions form
    assert locale_projects[0][0] == project_locale_a.pk
    # Check project_locale translators
    translators_list = [
        {"id": u.id, "email": u.email, "first_name": u.first_name} for u in translators
    ]
    assert locale_projects[0][3] == translators_list