Merge "NetApp fix eseries unit test mock clean"

This commit is contained in:
Jenkins 2014-10-03 01:38:27 +00:00 committed by Gerrit Code Review
commit 393c2c5894

View File

@ -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()