Merge "Tests: Fix os.path.exists mock (emc_vnxdirect)"

This commit is contained in:
Jenkins 2015-08-10 08:17:34 +00:00 committed by Gerrit Code Review
commit 574e231efc

View File

@ -2279,9 +2279,9 @@ Time Remaining: 0 second(s)
] ]
fake_cli.assert_has_calls(expected) fake_cli.assert_has_calls(expected)
def test_terminate_connection(self): @mock.patch('os.path.exists', return_value=True)
def test_terminate_connection(self, _mock_exists):
os.path.exists = mock.Mock(return_value=1)
self.driver = emc_cli_iscsi.EMCCLIISCSIDriver( self.driver = emc_cli_iscsi.EMCCLIISCSIDriver(
configuration=self.configuration) configuration=self.configuration)
cli_helper = self.driver.cli._client cli_helper = self.driver.cli._client