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, 20, 50, 100):
raise Exception('Valor de moeda invalido.')
...