'Sets staff lock for a subsection, which should hide the
subsection score from students on the progress page.'

def _set_staff_lock_on_subsection(self, locked):

    self.studio_course_outline.visit()
    subsection = self.studio_course_outline.section_at(0).subsection_at(0)
    subsection.set_staff_lock(locked)
    self.assertEqual(subsection.has_staff_lock_warning, locked)
