def test_formatting_exceptions(self): self.assertEqual(exec_utils._format_exception_message(ValueError("foo")), "ValueError: foo") self.assertEqual(exec_utils._format_exception_message(AppError("foo")), "foo")
def test_formatting_exceptions(self): self.assertEqual( exec_utils._format_exception_message(ValueError("foo")), "ValueError: foo") self.assertEqual(exec_utils._format_exception_message(AppError("foo")), "foo")