Mocking boto exception

I was getting so frustrated.

I knew how to raise the exception with side_effect=. But, how do you mock the exception?

To get it to work, I inherited the exception class – BotoServerError

Order of decorator

Also, pay attention to the order of parameters. My assertions were failing left and right.

Leave a Comment

Your email address will not be published. Required fields are marked *