unittest.TestCase.assertRaises is not a context manager in Python 2.6