gem/oq-engine — pull request #816 by larsbutler (2012-07-15 14:15:38+00:00)
Title: More tests and cleanup for the classical hazard calc

Another branch for https://bugs.launchpad.net/openquake/+bug/1020117.

This basically cleans up a bunch of TODOs, fixes some bugs, and brings test coverage for `core_next` to 100%.

It's worth noting that I also cleaned up a bunch of unused fields in the `output` table. There's still an issue with `output`, however. The FK currently points to `oq_job`; it should be changed to `hazard_calculation`. Given that, we may consider splitting output tables. We'll have to think about it and discuss.