Migrate from using assertRaisesRegexp to assertRaisesRegex

This commit is contained in:
Peter Hamilton 2019-01-18 10:02:46 -05:00 committed by Peter Hamilton
parent 4828e0d845
commit f75a74922a
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class TestProxyKmipClient(testtools.TestCase):
"""
client = ProxyKmipClient()
args = (client, "kmip_version", None)
self.assertRaisesRegexp(
self.assertRaisesRegex(
ValueError,
"KMIP version must be a KMIPVersion enumeration",
setattr,

View File

@ -119,7 +119,7 @@ class TestKMIPClient(TestCase):
"""
client = KMIPProxy()
args = (client, "kmip_version", None)
self.assertRaisesRegexp(
self.assertRaisesRegex(
ValueError,
"KMIP version must be a KMIPVersion enumeration",
setattr,