def METHOD_NAME(
    self, blackboard_api_client, plugin, grouping_service, course
):
    blackboard_api_client.group_set_groups.side_effect = ExternalRequestError(
        response=Mock(status_code=500)
    )
    with pytest.raises(ExternalRequestError):
        plugin.get_groups_for_instructor(
            grouping_service, course, sentinel.group_set_id
        )