'Tests the processor exception html message'

@ddt.data('string', u'\xfc\xf1\xee\xe7\xf8\u2202\xe9')
def test_get_processor_exception_html(self, error_string):

    for exception_type in [CCProcessorSignatureException, CCProcessorWrongAmountException, CCProcessorDataException]:
        error_msg = error_string
        exception = exception_type(error_msg)
        html = _get_processor_exception_html(exception)
        self.assertIn(settings.PAYMENT_SUPPORT_EMAIL, html)
        self.assertIn('Sorry!', html)
        self.assertIn(error_msg, html)
