Replace try/except/else with self.assertRaises.

Blueprint update-expected-exception-tests.

Change-Id: I2eab6cbc349814526f5610dc7dfb9cf5414cc885
Merge "Replace try/except/else with self.assertRaises."