2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-23 19:53:24 +00:00

Fix pending deprecation warnings caused by dependency upgrades

This change fixes various pending deprecation warnings throughout
the library caused by recent updates to different dependencies.
While PyKMIP no longer directly triggers these warnings, some
dependencies still do when run through the test suite.
This commit is contained in:
Peter Hamilton
2018-11-16 11:42:05 -05:00
parent 257fcca477
commit 9a5db6d5e1
48 changed files with 583 additions and 578 deletions

View File

@@ -243,7 +243,7 @@ class TestUtils(testtools.TestCase):
mock_get.return_value = ["John Doe", "Jane Doe"]
args = ("test", )
self.assertRaisesRegexp(
self.assertRaisesRegex(
exceptions.PermissionDenied,
"Multiple client identities found.",
utils.get_client_identity_from_certificate,
@@ -261,7 +261,7 @@ class TestUtils(testtools.TestCase):
mock_get.return_value = []
args = ("test", )
self.assertRaisesRegexp(
self.assertRaisesRegex(
exceptions.PermissionDenied,
"The certificate does not define any subject common names. Client "
"identity unavailable.",