'Scenario: An explicitly locked unit is still locked after removing an inherited lock from a section
Given I have a course with sections, subsections, and units
And I have enabled explicit staff lock on a section and one of its units
When I click on the section\'s configuration icon
And I disable explicit staff locking
And I click save
Then the unit still shows a staff lock warning'

def test_explicit_staff_lock_remains_after_unlocking_section(self):

    self.course_outline_page.visit()
    self.course_outline_page.expand_all_subsections()
    section = self.course_outline_page.section_at(0)
    unit = section.subsection_at(0).unit_at(0)
    self._verify_explicit_staff_lock_remains_after_unlocking_parent(unit, section)
