'Test that we can override Scope.settings values in a course.'

def test_overrides(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)
    lc_block2 = self._add_library_content_block(self.course, self.lib_key)
    lc_block2 = self._refresh_children(lc_block2)
    self.problem_in_course = modulestore().get_item(self.lc_block.children[0])
    problem2_in_course = modulestore().get_item(lc_block2.children[0])
    self.assertEqual(self.problem_in_course.display_name, new_display_name)
    self.assertEqual(self.problem_in_course.weight, new_weight)
    self.assertEqual(problem2_in_course.display_name, self.original_display_name)
    self.assertEqual(problem2_in_course.weight, self.original_weight)
