Bump hacking
hacking 3.0.x is too old. Change-Id: I3293136b291c38803c701f7aabf0ec896d164944
This commit is contained in:
@@ -53,7 +53,7 @@ class NfsBrickConnector(base.BaseBrickConnectorInterface):
|
||||
|
||||
@staticmethod
|
||||
def get_hash_str(base_str):
|
||||
"""Returns string that represents SHA256 hash of base_str (in hex format).
|
||||
"""Returns string representing SHA256 hash of base_str in hex format.
|
||||
|
||||
If base_str is a Unicode string, encode it to UTF-8.
|
||||
"""
|
||||
|
||||
@@ -38,7 +38,7 @@ class TestConnectorBase(test_base.StoreBaseTest):
|
||||
def test_factory(self, protocol, expected_class):
|
||||
connector_class = base.factory(
|
||||
connection_info={'driver_volume_type': protocol})
|
||||
self.assertTrue(isinstance(connector_class, expected_class))
|
||||
self.assertIsInstance(connector_class, expected_class)
|
||||
|
||||
|
||||
class TestBaseBrickConnectorInterface(test_base.StoreBaseTest):
|
||||
|
||||
@@ -766,7 +766,7 @@ class TestCinderStoreBase(object):
|
||||
|
||||
mock_wait.side_effect = [fake_volume, exceptions.BackendException]
|
||||
self.assertRaises(
|
||||
Exception, self.store.add, expected_image_id, # noqa
|
||||
exceptions.StorageFull, self.store.add, expected_image_id,
|
||||
image_file, expected_size, self.hash_algo, self.context,
|
||||
verifier)
|
||||
fake_volume.delete.assert_called_once()
|
||||
|
||||
Reference in New Issue
Block a user