'Scenario: Delete section
Given that I am on the course outline
When I click the delete button for a section on the course outline
Then I should receive a confirmation message, asking me if I really want to delete the section
When I click "Yes, I want to delete this component"
Then the confirmation message should close
And the section should immediately be deleted from the course outline'

def test_delete_section(self):

    self.course_outline_page.visit()
    self.assertEqual(len(self.course_outline_page.sections()), 1)
    self.course_outline_page.section_at(0).delete()
    self.assertEqual(len(self.course_outline_page.sections()), 0)
