'Scenario: On the Certificates tab of the Instructor Dashboard, Instructor can remove  added certificate
exceptions from the list.
Given that I am on the Certificates tab on the Instructor Dashboard
When I fill in student username and notes fields and click \'Add Exception\' button
Then new certificate exception should be visible in certificate exceptions list'

def test_instructor_can_remove_certificate_exception(self):

    notes = 'Test    Notes'
    self.certificates_section.add_certificate_exception(self.user_name, notes)
    self.assertIn(self.user_name, self.certificates_section.last_certificate_exception.text)
    self.assertIn(notes, self.certificates_section.last_certificate_exception.text)
    self.certificates_section.remove_first_certificate_exception()
    self.assertNotIn(self.user_name, self.certificates_section.last_certificate_exception.text)
    self.assertNotIn(notes, self.certificates_section.last_certificate_exception.text)
    self.certificates_section.refresh()
    self.certificates_section.wait_for_certificate_exceptions_section()
    self.assertNotIn(self.user_name, self.certificates_section.last_certificate_exception.text)
    self.assertNotIn(notes, self.certificates_section.last_certificate_exception.text)
