Rewriten the test to use assertRaises() to check for the exception.
Rewriten the test to use assertRaises() to check for the exception.


Former-commit-id: d2605f09bd3873b60c0d9c040787488a2b1fe64e
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine