this is reinventing the wheel: use `nose.tools.assert_raises_regexp`.