- #1
- 59
- 4
I would like to make output only read:
Traceback (most recent call last):
AssertionError
... without giving the File "<input>", line 1, in <module>
assertRaises
in your test instead of testing the crash dump output.can you tell me what assertRaises exactly do and how to use it? I have never heard about it :(Oh its for unit testing? You should useassertRaises
in your test instead of testing the crash dump output.
try...except
and how to get the message string from an AssertionError
in a Python reference if you haven't covered them already (have you skipped some of the tutorial?).