Replace assertRaisesRegexp with assertRaisesRegex
This replaces the deprecated (in python 3.2) unittest.TestCase method assertRaisesRegexp() with assertRaisesRegex() Change-Id: I36c56032d4c3279d89c2b196a193196aad6aeeea
This commit is contained in:
parent
5d8f5e3324
commit
525e9aa72c
|
@ -260,7 +260,7 @@ class DiscoverVersionTestCase(utils.TestCase):
|
|||
manilaclient.API_MAX_VERSION = api_versions.APIVersion("2.3")
|
||||
manilaclient.API_MIN_VERSION = api_versions.APIVersion("2.1")
|
||||
|
||||
self.assertRaisesRegexp(exceptions.UnsupportedVersion,
|
||||
self.assertRaisesRegex(exceptions.UnsupportedVersion,
|
||||
".*range is '2.4' to '2.7'.*",
|
||||
api_versions.discover_version,
|
||||
self.fake_client,
|
||||
|
@ -347,7 +347,7 @@ class DiscoverVersionTestCase(utils.TestCase):
|
|||
manilaclient.API_MAX_VERSION = api_versions.APIVersion("2.5")
|
||||
manilaclient.API_MIN_VERSION = api_versions.APIVersion("2.5")
|
||||
|
||||
self.assertRaisesRegexp(exceptions.UnsupportedVersion,
|
||||
self.assertRaisesRegex(exceptions.UnsupportedVersion,
|
||||
".*range is '2.0' to '2.5'.*",
|
||||
api_versions.discover_version,
|
||||
self.fake_client,
|
||||
|
|
Loading…
Reference in New Issue