Properly used context manager for assertRaises
Python 2.7 doesn't support the msg argument for assertRaises context managers.