'Rescore the student for problem loaded via ajax.'

def test_rescore_state_for_problem_loaded_via_ajax(self):

    staff_page = self._goto_staff_page()
    staff_page.load_problem_via_ajax()
    staff_page.answer_problem()
    staff_debug_page = staff_page.open_staff_debug_info()
    staff_debug_page.rescore()
    msg = staff_debug_page.idash_msg[0]
    self.assertEqual(u'Successfully    rescored    problem    for    user    {}'.format(self.USERNAME), msg)
