'test create_volume.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_common.HBSDCommon, 'get_volume_metadata')
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'exec_raidcom', side_effect=_exec_raidcom)
def test_create_volume_error(self, arg1, arg2, arg3):

    self.assertRaises(exception.HBSDError, self.driver.create_volume, self.test_volume_error)
