I think this sort of test should be implemented using self.assertRaises.  See examples of its use elsewhere in this file.