How to parametrize exception testing in PyTest?