'Verifies radio button group identified by `group_name` has its selection set to `value`.
See `Select Radio Button` for information about how radio buttons are
located.'

@keyword
def radio_button_should_be_set_to(self, group_name, value):

    self.info(("Verifying    radio    button    '%s'    has    selection    '%s'." % (group_name, value)))
    elements = self._get_radio_buttons(group_name)
    actual_value = self._get_value_from_radio_buttons(elements)
    if ((actual_value is None) or (actual_value != value)):
        raise AssertionError(("Selection    of    radio    button    '%s'    should    have    been    '%s'    but    was    '%s'" % (group_name, value, actual_value)))
