import mock
from oslo_utils import units
import six
+from six.moves import range
+from six.moves import reduce
from cinder import exception
from cinder import test
new_attr=mock.Mock(return_value=system))
self.mock_object(self.library._client, 'update_stored_system_password')
self.mock_object(time, 'time', new_attr = mock.Mock(
- side_effect=xrange(0, 60, 5)))
+ side_effect=range(0, 60, 5)))
self.assertRaisesRegexp(exception.NetAppDriverException,
'bad.*?status',
"""Test volume extend with a thick-provisioned volume"""
def get_copy_progress():
- for eta in xrange(5, -1, -1):
+ for eta in range(5, -1, -1):
action_status = 'none' if eta == 0 else 'remappingDve'
complete = action_status == 'none'
yield complete, action_status, eta
:returns: True if the feature is supported, otherwise False
"""
return self.supported
+
+ def __bool__(self):
+ """py3 Allow a FeatureState object to be tested for truth value
+
+ :returns: True if the feature is supported, otherwise False
+ """
+ return self.supported
cinder.tests.unit.test_xio
cinder.tests.unit.test_zfssa
cinder.tests.unit.volume.drivers.emc.scaleio
+cinder.tests.unit.volume.drivers.netapp.eseries.test_library
cinder.tests.unit.volume.drivers.test_fujitsu
cinder.tests.unit.volume.flows.test_create_volume_flow
cinder.tests.unit.windows.test_smbfs