Fixed a pylint issue and also replaced an 'assert' with a proper unittest assert.
Fixed a pylint issue and also replaced an 'assert' with a proper unittest assert.

gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine