From ac9640f73e30e700a1bf8ad554ff23999b0fc57f Mon Sep 17 00:00:00 2001 From: aps <62445385+apsz3@users.noreply.github.com> Date: Fri, 10 Feb 2023 22:41:27 -0500 Subject: [PATCH] Add sample test for assertions with messages --- tests/_exception.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/_exception.py b/tests/_exception.py index 84423b10..4e77ac35 100644 --- a/tests/_exception.py +++ b/tests/_exception.py @@ -41,4 +41,11 @@ def f1(): try: f1() except KeyError: - print("PASS 04") \ No newline at end of file + print("PASS 04") + + +assert True, "Msg" +try: + assert False, "Msg" +except AssertionError: + print("PASS 05")