dimanche 5 juillet 2015

How to use python unittest assertRaises conditionally?

What is the best way to use assertRaises conditional on the environment? i.e. in some cases I want to test to run successfully, and in some cases it should raise a specific exception.

Aucun commentaire:

Enregistrer un commentaire