message='', info_message='', reraise=True):
raise processutils.ProcessExecutionError(description='Oops')
- self.assertRaisesRegex(processutils.ProcessExecutionError, r'^Oops', f)
+ self.assertRaisesRegexp(processutils.ProcessExecutionError,
+ r'^Oops', f)
def test_reraise_false(self):
with srb.handle_process_execution_error(
message='', info_message='', reraise=RuntimeError('Oops')):
raise processutils.ProcessExecutionError
- self.assertRaisesRegex(RuntimeError, r'^Oops', f)
+ self.assertRaisesRegexp(RuntimeError, r'^Oops', f)
class SRBDriverTestCase(test.TestCase):