'Test conditions under which we tell the template to
NOT show correct/incorrect, but instead show a message.
This is used, for example, by the Justice course to ask
questions without specifying a correct answer.  When
the student responds, the problem displays "Thank you
for your response"'

def test_never_show_correctness(self):

    conditions = [{'input_type': 'radio', 'status': Status('correct'), 'value': ''}, {'input_type': 'radio', 'status': Status('correct'), 'value': '2'}, {'input_type': 'radio', 'status': Status('correct'), 'value': ['2']}, {'input_type': 'radio', 'status': Status('incorrect'), 'value': '2'}, {'input_type': 'radio', 'status': Status('incorrect'), 'value': []}, {'input_type': 'radio', 'status': Status('incorrect'), 'value': ['2']}, {'input_type': 'checkbox', 'status': Status('correct'), 'value': []}, {'input_type': 'checkbox', 'status': Status('correct'), 'value': ['2']}, {'input_type': 'checkbox', 'status': Status('incorrect'), 'value': []}, {'input_type': 'checkbox', 'status': Status('incorrect'), 'value': ['2']}]
    self.context['show_correctness'] = 'never'
    self.context['submitted_message'] = 'Test    message'
    for test_conditions in conditions:
        self.context.update(test_conditions)
        xml = self.render_to_xml(self.context)
        xpath = "//div[@class='indicator-container']/span[@class='status    correct']"
        self.assert_no_xpath(xml, xpath, self.context)
        xpath = "//div[@class='indicator-container']/span[@class='status    incorrect']"
        self.assert_no_xpath(xml, xpath, self.context)
        self.assert_no_xpath(xml, "//label[@class='choicegroup_incorrect']", self.context)
        self.assert_no_xpath(xml, "//label[@class='choicegroup_correct']", self.context)
        self.assert_has_text(xml, "//div[@class='capa_alert']", self.context['submitted_message'])
