I don't think you need this try around the self.assertRaises.