'Scenario: All subsections in section are explicitly locked, section should display staff only warning
Given I have a course one section and two subsections
When I enable explicit staff lock on all the subsections
Then the section shows a staff lock warning'

def test_section_displays_lock_when_all_subsections_locked(self):

    self.course_outline_page.visit()
    section = self.course_outline_page.section_at(0)
    section.subsection_at(0).set_staff_lock(True)
    section.subsection_at(1).set_staff_lock(True)
    self.assertTrue(section.has_staff_lock_warning)
