'Tests that the progress chart axes have appropriate a11y (screenreader) markup.'

def test_axis_a11y(self):

    with self._logged_in_session():
        self.courseware_page.visit()
        self._answer_problem_correctly()
        self.courseware_page.click_next_button_on_top()
        self._answer_problem_correctly()
        self.progress_page.visit()
        self.progress_page.a11y_audit.check_for_accessibility_errors()
        self.assertEqual(['100%', 'true'], self.progress_page.y_tick_label(0))
        self.assertEqual(['0%', 'true'], self.progress_page.y_tick_label(1))
        self.assertEqual(['Pass    50%', 'true'], self.progress_page.y_tick_label(2))
        self._check_tick_text(0, [u'Homework    1    -    Test    Subsection    1    -    50%    (1/2)'], u'HW    01')
        self._check_tick_text(10, [u'Homework    11    Unreleased    -    0%    (?/?)', u'The    lowest    2    Homework    scores    are    dropped.'], u'HW    11')
        self._check_tick_text(11, [u'Homework    12    Unreleased    -    0%    (?/?)', u'The    lowest    2    Homework    scores    are    dropped.'], u'HW    12')
        self._check_tick_text(12, [u'Homework    Average    =    5%'], u'HW    Avg')
        self._check_tick_text(13, [u'Lab    1    -    Lab    Subsection    -    100%    (1/1)'], u'Lab    01')
        self._check_tick_text(23, [u'Lab    11    Unreleased    -    0%    (?/?)', u'The    lowest    2    Lab    scores    are    dropped.'], u'Lab    11')
        self._check_tick_text(24, [u'Lab    12    Unreleased    -    0%    (?/?)', u'The    lowest    2    Lab    scores    are    dropped.'], u'Lab    12')
        self._check_tick_text(25, [u'Lab    Average    =    10%'], u'Lab    Avg')
        self._check_tick_text(26, [u'Midterm    Exam    =    0%'], u'Midterm')
        self._check_tick_text(27, [u'Final    Exam    =    0%'], u'Final')
        self._check_tick_text(28, [u'Homework    =    0.75%    of    a    possible    15.00%', u'Lab    =    1.50%    of    a    possible    15.00%'], u'Total', False)
        for i in range(1, 10):
            self._check_tick_text(i, [u'Homework    {index}    Unreleased    -    0%    (?/?)'.format(index=(i + 1))], (u'HW    0{index}'.format(index=(i + 1)) if (i < 9) else u'HW    {index}'.format(index=(i + 1))))
            self._check_tick_text((i + 13), [u'Lab    {index}    Unreleased    -    0%    (?/?)'.format(index=(i + 1))], (u'Lab    0{index}'.format(index=(i + 1)) if (i < 9) else u'Lab    {index}'.format(index=(i + 1))))
        self.assertEqual(['Overall    Score', 'Overall    Score\n2%'], self.progress_page.graph_overall_score())
