'Scenario: An explicitly locked unit is still locked after removing an inherited lock from a subsection
Given I have a course with sections, subsections, and units
And I have enabled explicit staff lock on a subsection and one of its units
When I click on the subsection\'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_subsection(self):

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