Remove moxstubout

Newer versions of oslo.service will have moxstubout
deprecated, so get out in front of the curve and remove it.

Change-Id: I74369b90c3d9352e1c59062bda8410a09675b40c
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-05-17 21:40:19 -04:00
parent 6d82217fbe
commit 135ab8f83a
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,6 @@ from oslo_service import sslutils
from oslo_service.tests import base
from oslo_service import wsgi
from oslo_utils import netutils
from oslotest import moxstubout
SSL_CERT_DIR = os.path.normpath(os.path.join(
@ -56,9 +55,10 @@ class TestLoaderNothingExists(WsgiTestCase):
def setUp(self):
super(TestLoaderNothingExists, self).setUp()
mox_fixture = self.useFixture(moxstubout.MoxStubout())
self.stubs = mox_fixture.stubs
self.stubs.Set(os.path, 'exists', lambda _: False)
mock_patcher = mock.patch.object(os.path, 'exists',
lambda _: False)
mock_patcher.start()
self.addCleanup(mock_patcher.stop)
def test_relpath_config_not_found(self):
self.config(api_paste_config='api-paste.ini')