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

def test_cancel_delete_unit(self):

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