'Test reset all student attempts.'

@patch.object(lms.djangoapps.instructor_task.api, 'submit_reset_problem_attempts_for_all_students')
def test_reset_student_attempts_all(self, act):

    url = reverse('reset_student_attempts', kwargs={'course_id': self.course.id.to_deprecated_string()})
    response = self.client.post(url, {'problem_to_reset': self.problem_urlname, 'all_students': True})
    self.assertEqual(response.status_code, 200)
    self.assertTrue(act.called)
