summaryrefslogtreecommitdiff
path: root/cinderclient
diff options
context:
space:
mode:
Diffstat (limited to 'cinderclient')
-rw-r--r--cinderclient/tests/unit/test_api_versions.py12
-rw-r--r--cinderclient/tests/unit/v2/test_shell.py8
2 files changed, 10 insertions, 10 deletions
diff --git a/cinderclient/tests/unit/test_api_versions.py b/cinderclient/tests/unit/test_api_versions.py
index 24b09d0..559d814 100644
--- a/cinderclient/tests/unit/test_api_versions.py
+++ b/cinderclient/tests/unit/test_api_versions.py
@@ -236,12 +236,12 @@ class DiscoverVersionTestCase(utils.TestCase):
api_versions.MIN_VERSION = client_min
if exp_range:
- self.assertRaisesRegexp(exceptions.UnsupportedVersion,
- ".*range is '%s' to '%s'.*" %
- (server_min, server_max),
- api_versions.discover_version,
- self.fake_client,
- api_versions.APIVersion(requested_version))
+ self.assertRaisesRegex(exceptions.UnsupportedVersion,
+ ".*range is '%s' to '%s'.*" %
+ (server_min, server_max),
+ api_versions.discover_version,
+ self.fake_client,
+ api_versions.APIVersion(requested_version))
else:
discovered_version = api_versions.discover_version(
self.fake_client,
diff --git a/cinderclient/tests/unit/v2/test_shell.py b/cinderclient/tests/unit/v2/test_shell.py
index 6284122..4e966dd 100644
--- a/cinderclient/tests/unit/v2/test_shell.py
+++ b/cinderclient/tests/unit/v2/test_shell.py
@@ -529,10 +529,10 @@ class ShellTest(utils.TestCase):
def test_rename_invalid_args(self):
"""Ensure that error generated does not reference an HTTP code."""
- self.assertRaisesRegexp(exceptions.ClientException,
- '(?!HTTP)',
- self.run_command,
- 'rename volume-1234-abcd')
+ self.assertRaisesRegex(exceptions.ClientException,
+ '(?!HTTP)',
+ self.run_command,
+ 'rename volume-1234-abcd')
def test_rename_snapshot(self):
# basic rename with positional arguments