def METHOD_NAME(
    self, d2l_api_client, plugin, grouping_service, course
):
    d2l_api_client.group_set_groups.side_effect = ExternalRequestError(
        response=Mock(status_code=404)
    )
    with pytest.raises(GroupError) as err:
        plugin.get_groups_for_learner(
            grouping_service, course, sentinel.group_set_id
        )
    assert err.value.error_code == ErrorCodes.GROUP_SET_NOT_FOUND