def setUp(self):
    super(TestVolumeValidation, self).setUp()
    bdm_v2 = [{'volume_size': 1, 'uuid': '6ce0be68', 'source_type': 'volume', 'destination_type': 'volume', 'boot_index': 0}]
    volume_spec = {'type': 'os.nova.server', 'version': '1.0', 'properties': {'flavor': 'FLAV', 'name': 'FAKE_SERVER_NAME', 'security_groups': ['HIGH_SECURITY_GROUP'], 'block_device_mapping_v2': bdm_v2}}
    self.vc = mock.Mock()
    self.profile = server.ServerProfile('t', volume_spec)
    self.profile._block_storageclient = self.vc
def setUp(self):
    super(TestVolumeValidation, self).setUp()
    bdm_v2 = [{'volume_size': 1, 'uuid': '6ce0be68', 'source_type': 'volume', 'destination_type': 'volume', 'boot_index': 0}]
    volume_spec = {'type': 'os.nova.server', 'version': '1.0', 'properties': {'flavor': 'FLAV', 'name': 'FAKE_SERVER_NAME', 'security_groups': ['HIGH_SECURITY_GROUP'], 'block_device_mapping_v2': bdm_v2}}
    self.vc = mock.Mock()
    self.profile = server.ServerProfile('t', volume_spec)
    self.profile._block_storageclient = self.vc