'Run reset-attempts scenario on option problem'

def test_reset_attempts_on_problem(self):

    problem_url_name = 'H1P1'
    self.define_option_problem(problem_url_name)
    location = InstructorTaskModuleTestCase.problem_location(problem_url_name)
    descriptor = self.module_store.get_item(location)
    num_attempts = 3
    for _ in range(num_attempts):
        for username in self.userlist:
            self.submit_student_answer(username, problem_url_name, [OPTION_1, OPTION_1])
    for username in self.userlist:
        self.assertEquals(self.get_num_attempts(username, descriptor), num_attempts)
    self.reset_problem_attempts('instructor', location)
    for username in self.userlist:
        self.assertEquals(self.get_num_attempts(username, descriptor), 0)
