Replace assertRaisesRegexp with assertRaisesRegex

assertRaisesRegexp is raising a warning message that indicated the
function is going to be deprecated, use assertRaisesRegex instead.

Change-Id: Iff3b36ebec5d5d4b75c95c699ab76704d0053137
Closes-Bug: #1436957
This commit is contained in:
Victor Morales
2015-03-26 13:55:23 -06:00
committed by Steve Martinelli
parent a84b5ac115
commit cf97f271ed

View File

@@ -232,7 +232,7 @@ class SessionTests(utils.TestCase):
# The exception should contain the URL and details about the SSL error # The exception should contain the URL and details about the SSL error
msg = _('SSL exception connecting to %(url)s: %(error)s') % { msg = _('SSL exception connecting to %(url)s: %(error)s') % {
'url': self.TEST_URL, 'error': error} 'url': self.TEST_URL, 'error': error}
self.assertRaisesRegexp(exceptions.SSLError, self.assertRaisesRegex(exceptions.SSLError,
msg, msg,
session.get, session.get,
self.TEST_URL) self.TEST_URL)