'Specifically tests rescore when the previous and new raw scores are equal. In this case, the scores should
be updated.'

def test_rescoring_if_higher_scores_equal(self):

    problem_edit = dict(num_inputs=2)
    unchanged_max = 2
    new_max = 4
    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)
    self.submit_student_answer('u1', problem_url_name, [OPTION_1, OPTION_1])
    self.submit_student_answer('u2', problem_url_name, [OPTION_2, OPTION_2])
    self.check_state(self.user1, descriptor, 2, 2)
    self.check_state(self.user2, descriptor, 0, 2)
    self.redefine_option_problem(problem_url_name, **problem_edit)
    self.render_problem('u1', problem_url_name)
    self.check_state(self.user1, descriptor, 2, 2)
    self.check_state(self.user2, descriptor, 0, 2)
    self.submit_rescore_all_student_answers('instructor', problem_url_name, True)
    self.check_state(self.user1, descriptor, 2, unchanged_max)
    self.check_state(self.user2, descriptor, 0, new_max)
