def setUp(self): super(ClusterUtilsTestCase, self).setUp() self._clusterutils = clusterutils.ClusterUtils() self._clusterutils._conn_cluster = mock.MagicMock() self._clusterutils._cluster = mock.MagicMock() self._clusterutils._clusapi_utils = mock.Mock() self._clusapi = self._clusterutils._clusapi_utils
def setUp(self, mock_get_wmi_conn): super(ClusterUtilsTestCase, self).setUp() self._clusterutils = clusterutils.ClusterUtils() self._clusterutils._conn_cluster = mock.MagicMock() self._clusterutils._cluster = mock.MagicMock() self._clusapi = self._clusterutils._clusapi_utils self._cmgr = self._clusterutils._cmgr