1
I am studying a little of Python’s unittest and I have stopped there. In my code the user must enter a valid value, if an invalid value occurs should fall in Exception, however how can I test it ? My code is as follows::
if moeda not in (2, 5, 10, 20, 50, 100):
raise Exception('Valor de moeda invalido.')
...