Unit Testing with Python (Part 5) – Something Exceptional
Sometimes a unit test needs to do more than validate the good or correct path, what about failure scenarios? Let’s consider a search function, it returns an object when it finds what’s being requested but throws an exception when it can’t, any calling method would need to handle that exception and then behave accordingly. Here’s […]