mirror of https://github.com/OpenKMIP/PyKMIP.git
Migrate from using assertRaisesRegexp to assertRaisesRegex
This commit is contained in:
parent
4828e0d845
commit
f75a74922a
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue