This test isn't very specific.  The product code should be changed to raise a narrower exception, and this test can check for that specific exception.