'Test that the submission status displays correctly.'

def test_submission_status(self):

    test_cases = [('unsubmitted', 'unanswered'), ('incomplete', 'incorrect'), ('incorrect', 'incorrect')]
    for (input_status, expected_css_class) in test_cases:
        self.context['status'] = Status(input_status)
        xml = self.render_to_xml(self.context)
        xpath = "//span[@class='status    {0}']".format(expected_css_class)
        self.assert_has_xpath(xml, xpath, self.context)
    self.context['has_options_value'] = True
    self.context['status'] = Status('incorrect')
    xpath = "//span[@class='incorrect']"
    xml = self.render_to_xml(self.context)
    self.assert_no_xpath(xml, xpath, self.context)
