'Verifies select list identified by `locator` has no selections.
Select list keywords work on both lists and combo boxes. Key attributes for
select lists are `id` and `name`. See `introduction` for details about
locating elements.'

@keyword
def list_should_have_no_selections(self, locator):

    self.info(("Verifying    list    '%s'    has    no    selection." % locator))
    (select, options) = self._get_select_list_options_selected(locator)
    if options:
        selected_labels = self._get_labels_for_options(options)
        items_str = '    |    '.join(selected_labels)
        raise AssertionError(("List    '%s'    should    have    had    no    selection    (selection    was    [    %s    ])" % (locator, items_str)))
