I'm studying some of Python's unittest and I've packed it.
In my code the user must enter a valid value, if an invalid value occurs it should fall into the exception, but how can I test this?
My code looks like this:
if moeda not in (2, 5, 10,...
asked by
19.12.2016 / 08:01