https://betapython.com/how-do-a-python-function-throws-an-exception/
Exception | How Do You Test That A Python Function Throws An Exception?