'Scenario: Only some units in subsection are explicitly locked, subsection should NOT display staff only warning
Given I have a course with one subsection and two units
When I enable explicit staff lock on one unit
Then the subsection does not show a staff lock warning'

def test_subsection_does_not_display_lock_when_some_units_locked(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.unit_at(0).set_staff_lock(True)
    self.assertFalse(subsection.has_staff_lock_warning)
