Python/Unittest : assertRaises raises Error

Ran 1 test in 0.000s

OK
{% endhighlight %}

Perfect !

Note : For the purpose of this article, I did not work "backwards" (created test before the function). I think this would have been counter productive for the effect I wanted to highlight.