'Scenario: Cancel delete of subsection
Given that I clicked the delete button for a subsection on the course outline
And I received a confirmation message, asking me if I really want to delete the subsection
When I click "cancel"
Then the confirmation message should close
And the subsection should remain in the course outline'

def test_cancel_delete_subsection(self):

    self.course_outline_page.visit()
    self.assertEqual(len(self.course_outline_page.section_at(0).subsections()), 1)
    self.course_outline_page.section_at(0).subsection_at(0).delete(cancel=True)
    self.assertEqual(len(self.course_outline_page.section_at(0).subsections()), 1)
