'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(self, arg1, arg2, arg3):

    ret = self.driver.create_volume(self._VOLUME)
    vol = self._VOLUME.copy()
    vol['provider_location'] = ret['provider_location']
    self.assertEqual('1', vol['provider_location'])
