'Scenario: Ensure that creation of a certificate can be canceled correctly.
Given I have a course without certificates
When I click button \'Add your first Certificate\'
And I set name of certificate and click the button \'Cancel\'
Then I see that there is no certificates in the course'

def test_can_cancel_creation_of_certificate(self):

    self.certificates_page.visit()
    self.certificates_page.click_first_certificate_button()
    certificate = self.certificates_page.certificates[0]
    certificate.course_title = 'Title    Override'
    certificate.click_cancel_edit_certificate()
    self.assertEqual(len(self.certificates_page.certificates), 0)
