'Tests that a subsection with a staff-locked unit and a visible unit is not staff locked itself.'

def test_no_staff_only_subsection(self):

    chapter = self._create_child(self.course, 'chapter', 'Test    Chapter')
    sequential = self._create_child(chapter, 'sequential', 'Test    Sequential')
    self._create_child(sequential, 'vertical', 'Unit')
    self._create_child(sequential, 'vertical', 'Locked    Unit', staff_only=True)
    xblock_info = self._get_xblock_info(chapter.location)
    self._verify_visibility_state(xblock_info, VisibilityState.staff_only, self.FIRST_SUBSECTION_PATH, should_equal=False)
    self._verify_visibility_state(xblock_info, VisibilityState.staff_only, self.FIRST_UNIT_PATH, should_equal=False)
    self._verify_visibility_state(xblock_info, VisibilityState.staff_only, self.SECOND_UNIT_PATH)
