Exemple #1
0
 def test_get_processor_exception_html(self, error_string):
     """
     Tests the processor exception html message
     """
     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)
 def test_get_processor_exception_html(self, error_string):
     """
     Tests the processor exception html message
     """
     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)