Meanwhile, we are checking exception by using isinstance function, that means if we have ParentException and ChildExcetion, then if callable trigger ChildException, then
expect(callable).to.throw(ParentException)
would be ok too.
In some case, we might want to check exactly the exception which was raised, so, we might want
Meanwhile, we are checking exception by using
isinstance
function, that means if we have ParentException and ChildExcetion, then ifcallable
trigger ChildException, thenwould be ok too.
In some case, we might want to check exactly the exception which was raised, so, we might want