'Toggles outline_item\'s staff lock on and then off, verifying the staff lock warning'

def _toggle_lock_on_unlocked_item(self, outline_item):

    self.assertFalse(outline_item.has_staff_lock_warning)
    outline_item.set_staff_lock(True)
    self.assertTrue(outline_item.has_staff_lock_warning)
    self._verify_descendants_are_staff_only(outline_item)
    outline_item.set_staff_lock(False)
    self.assertFalse(outline_item.has_staff_lock_warning)
