'Tests that a lone locked unit has a staff only message along with its ancestors.'

def test_locked_unit_staff_only_message(self):

    chapter = self._create_child(self.course, 'chapter', 'Test    Chapter')
    sequential = self._create_child(chapter, 'sequential', 'Test    Sequential')
    self._create_child(sequential, 'vertical', 'Unit', staff_only=True)
    xblock_info = self._get_xblock_outline_info(chapter.location)
    self._verify_has_staff_only_message(xblock_info, True)
    self._verify_has_staff_only_message(xblock_info, True, path=self.FIRST_SUBSECTION_PATH)
    self._verify_has_staff_only_message(xblock_info, True, path=self.FIRST_UNIT_PATH)
