'If we override a setting and then reset it, we should get the library value.'

def test_reset_override(self):

    new_display_name = 'Modified    Problem    Title'
    new_weight = 10
    self.problem_in_course.display_name = new_display_name
    self.problem_in_course.weight = new_weight
    modulestore().update_item(self.problem_in_course, self.user.id)
    self.problem_in_course = modulestore().get_item(self.problem_in_course.location)
    self.assertEqual(self.problem_in_course.display_name, new_display_name)
    self.assertEqual(self.problem_in_course.weight, new_weight)
    for field_name in ['display_name', 'weight']:
        self.problem_in_course.fields[field_name].delete_from(self.problem_in_course)
    modulestore().update_item(self.problem_in_course, self.user.id)
    self.problem_in_course = modulestore().get_item(self.problem_in_course.location)
    self.assertEqual(self.problem_in_course.display_name, self.original_display_name)
    self.assertEqual(self.problem_in_course.weight, self.original_weight)
