'Scenario: Units can be locked and unlocked from the course outline page
Given I have a course with a unit
When I click on the configuration icon
And I enable explicit staff locking
And I click save
Then the unit shows a staff lock warning
And when I click on the configuration icon
And I disable explicit staff locking
And I click save
Then the unit does not show a staff lock warning'

def test_units_can_be_locked(self):

    self.course_outline_page.visit()
    self.course_outline_page.expand_all_subsections()
    unit = self.course_outline_page.section_at(0).subsection_at(0).unit_at(0)
    self._toggle_lock_on_unlocked_item(unit)
