'Scenario: Removing explicit staff lock from a subsection which does not inherit staff lock displays a warning.
Given I have a course with a section and subsection
When I enable explicit staff lock on the subsection
And I disable explicit staff lock on the subsection
Then I see a modal warning.'

def test_removing_staff_lock_from_subsection_without_inherited_lock_shows_warning(self):

    self.course_outline_page.visit()
    self.course_outline_page.expand_all_subsections()
    subsection = self.course_outline_page.section_at(0).subsection_at(0)
    subsection.set_staff_lock(True)
    self._remove_staff_lock_and_verify_warning(subsection, True)
