Python unittests with assert statement (with exceptions catching)


/ Published in: Python
Save to your folder(s)

method 'E' (in fact a decorator) catch the execption and return it, so it's possible to use the good old assert statement.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.