'Scenario: Collapse link is removed after last section of a course is deleted
Given I have a course with one section
And I navigate to the course outline page
When I will confirm all alerts
And I press the "section" delete icon
Then I do not see the "Collapse All Sections" link
And I will see a message that says "You haven\'t added any content to this course yet"'

def test_no_expand_link_for_empty_course(self):

    self.course_outline_page.visit()
    self.course_outline_page.section_at(0).delete()
    self.assertEquals(self.course_outline_page.expand_collapse_link_state, ExpandCollapseLinkState.MISSING)
    self.assertTrue(self.course_outline_page.has_no_content_message)
