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 b0dd0ce80d
commit aef20a833e
1 changed files with 4 additions and 4 deletions

View File

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