'Scenario: On the Certificates tab of the Instructor Dashboard, Instructor can add new certificate
exception to list.
Given that I am on the Certificates tab on the Instructor Dashboard
When I fill in student username and notes (which contains character which are needed to be escaped)
and click \'Add Exception\' button, then new certificate exception should be visible in
certificate exceptions list.'

@ddt.data(('Test    \nNotes', 'Test    Notes'), ('<Test>Notes</Test>', '<Test>Notes</Test>'))
@ddt.unpack
def test_notes_escaped_in_add_certificate_exception(self, notes, expected_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(expected_notes, self.certificates_section.last_certificate_exception.text)
    self.certificates_section.refresh()
    self.certificates_section.wait_for_certificate_exceptions_section()
    self.assertIn(self.user_name, self.certificates_section.last_certificate_exception.text)
    self.assertIn(expected_notes, self.certificates_section.last_certificate_exception.text)
