Reverted to older unittest.TestCase.assertRaises form.
This form is compatible with Python 2.6.

Fixes the failures found with Travis builds [53, 54]