Merge "NetApp fix eseries unit test mock clean"
This commit is contained in:
commit
393c2c5894
@ -640,7 +640,7 @@ class NetAppEseriesIscsiDriverTestCase(test.TestCase):
|
||||
def _custom_setup(self):
|
||||
configuration = self._set_config(create_configuration())
|
||||
self.driver = common.NetAppDriver(configuration=configuration)
|
||||
requests.Session = mock.Mock(wraps=FakeEseriesHTTPSession)
|
||||
self.mock_object(requests, 'Session', FakeEseriesHTTPSession)
|
||||
self.driver.do_setup(context='context')
|
||||
self.driver.check_for_setup_error()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user