Using fixtures instead of deprecated mockpatch module
This module mockpatch of oslotest[1] is deprecated since version 1.13
and may be removed in version 2.0. Use fixtures.Mock* classes instead[2]
[1]OpenStack Testing Framework and Utilities
[2]https://docs.openstack.org/developer/oslotest/api/oslotest.mockpatch.html#module-oslotest.mockpatch
MODIFY
heatclient/tests/unit/test_shell.py
heatclient/tests/unit/test_shell.py
@@ -22,7 +22,6 @@ import mock
import mox
from oslo_serialization import jsonutils
from oslo_utils import encodeutils
-from oslotest import mockpatch
import requests
from requests_mock.contrib import fixture as rm_fixture
import six
@@ -124,7 +123,7 @@ class TestCase(testtools.TestCase):
# NOTE(tlashchova): this overrides the testtools.TestCase.patch method
# that does simple monkey-patching in favor of mock's patching
def patch(self, target, **kwargs):
- mockfixture = self.useFixture(mockpatch.Patch(target, **kwargs))
+ mockfixture = self.useFixture(fixtures.MockPatch(target, **kwargs))
return mockfixture.mock
def stack_list_resp_dict(self, show_nested=False, include_project=False):

Using fixtures instead of deprecated mockpatch module

This module mockpatch of oslotest[1] is deprecated since version 1.13
and may be removed in version 2.0. Use fixtures.Mock* classes instead[2]

[1]OpenStack Testing Framework and Utilities
[2]https://docs.openstack.org/developer/oslotest/api/oslotest.mockpatch.html#module-oslotest.mockpatch

Change-Id: I6ab2f326cecb95fa7f9e6cbb01be1b2b498abdb1