This would be tidier if you use ```assertRaises()``` as a context manager.