'Tests the processor exception html message'

def test_get_processor_exception_html(self):

    for type in [CCProcessorSignatureException, CCProcessorWrongAmountException, CCProcessorDataException]:
        error_msg = 'An    exception    message    of    with    exception    type    {0}'.format(str(type))
        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)
    self.assertIn('EXCEPTION!', get_processor_exception_html(CCProcessorException()))
