'Check if the given answer/choice is highlighted for choice group.'

def is_choice_highlighted(self, choice, choices_list):

    choice_status_xpath = '//fieldset/div[contains(@class,    "field")][{{0}}]/label[contains(@class,    "choicegroup_{choice}")]/span[contains(@class,    "status    {choice}")]'.format(choice=choice)
    any_status_xpath = '//fieldset/div[contains(@class,    "field")][{0}]/label/span'
    for choice in choices_list:
        if (not self.q(xpath=choice_status_xpath.format(choice)).is_present()):
            return False
        if (not (len(self.q(xpath=any_status_xpath.format(choice)).results) == 1)):
            return False
    return True
