From 1c565b37f32eb1fe802522edb5840816da294b93 Mon Sep 17 00:00:00 2001 From: Hao Shen Date: Fri, 21 Apr 2017 09:50:29 -0700 Subject: [PATCH] add missing reset_mock of logger in server revoke operation tests --- kmip/tests/unit/services/server/test_engine.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kmip/tests/unit/services/server/test_engine.py b/kmip/tests/unit/services/server/test_engine.py index c0c5824..a860f45 100644 --- a/kmip/tests/unit/services/server/test_engine.py +++ b/kmip/tests/unit/services/server/test_engine.py @@ -4426,6 +4426,8 @@ class TestKmipEngine(testtools.TestCase): revocation_reason=reason_compromise, compromise_date=date) + e._logger.reset_mock() + response_payload = e._process_revoke(payload) e._data_session.commit() e._data_session = e._data_store_session_factory() @@ -4451,6 +4453,8 @@ class TestKmipEngine(testtools.TestCase): symmetric_key.state = enums.State.DESTROYED e._data_session.commit() e._data_session = e._data_store_session_factory() + e._logger.reset_mock() + payload = revoke.RevokeRequestPayload( unique_identifier=attributes.UniqueIdentifier(object_id), revocation_reason=reason_compromise, @@ -4479,6 +4483,8 @@ class TestKmipEngine(testtools.TestCase): symmetric_key.state = enums.State.ACTIVE e._data_session.commit() e._data_session = e._data_store_session_factory() + e._logger.reset_mock() + e._id_placeholder = str(object_id) payload = revoke.RevokeRequestPayload( revocation_reason=reason_unspecified,