def test_ThrowSingleExceptionSafeFormatter(self): try: raise SyntaxError("Format Exception") except SyntaxError as e: formatted_exception = StringProcessor.safe_exception_formatter(e) self.assertTrue("Format Exception" in formatted_exception) self.assertTrue("utilitiesUnitTest\\StringProcessorUnitTest.py" in formatted_exception) self.assertTrue("in test_ThrowSingleExceptionSafeFormatter" in formatted_exception)
def test_SingleExceptionSafeFormatter(self): format_exception = SyntaxError("Format Exception") formatted_exception = StringProcessor.safe_exception_formatter(format_exception) self.assertTrue("Format Exception" in formatted_exception)