'Was saving inherited settings with updated blocks causing inheritance to be sticky'

def test_inheritance_not_saved(self):

    chapter = modulestore().get_item(BlockUsageLocator(CourseLocator(org='testx', course='GreekHero', run='run', branch=BRANCH_NAME_DRAFT), 'chapter', 'chapter3'))
    problem = modulestore().get_item(BlockUsageLocator(CourseLocator(org='testx', course='GreekHero', run='run', branch=BRANCH_NAME_DRAFT), 'problem', 'problem3_2'))
    self.assertFalse(problem.visible_to_staff_only)
    chapter.visible_to_staff_only = True
    modulestore().update_item(chapter, self.user_id)
    problem = modulestore().get_item(problem.location.version_agnostic())
    self.assertTrue(problem.visible_to_staff_only)
    chapter = modulestore().get_item(chapter.location.version_agnostic())
    del chapter.visible_to_staff_only
    modulestore().update_item(chapter, self.user_id)
    problem = modulestore().get_item(problem.location.version_agnostic())
    self.assertFalse(problem.visible_to_staff_only)
