15 lines
195 B
Python
15 lines
195 B
Python
|
|
|
|
assert 1 + 1
|
|
assert True, "Test"
|
|
|
|
try:
|
|
assert False
|
|
except AssertionError:
|
|
print("Pass")
|
|
|
|
try:
|
|
assert False, "with a message"
|
|
except AssertionError as e:
|
|
print("msg =", str(e))
|