'Scenario: A unit\'s explicit staff lock hides its inherited subsection staff lock information
Given I have a course with sections, subsections, and units
And I have enabled explicit staff lock on a section
When I visit the unit page
Then the unit page shows its inherited staff lock
And I enable explicit staff locking
Then the unit page does not show its inherited staff lock
And when I disable explicit staff locking
Then the unit page now shows its inherited staff lock'

def test_explicit_lock_overrides_implicit_section_lock_information(self):

    self.outline.visit()
    self.outline.expand_all_subsections()
    section = self.outline.section_at(0)
    unit = section.subsection_at(0).unit_at(0)
    section.set_staff_lock(True)
    unit_page = unit.go_to()
    self._verify_explicit_lock_overrides_implicit_lock_information(unit_page)
