'test create_volume_from_snapshot.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_common.HBSDCommon, 'get_volume_metadata', return_value={'dummy_volume_meta': 'meta'})
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'exec_raidcom', side_effect=_exec_raidcom)
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'start_horcm', return_value=[0, '', ''])
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'check_horcm', return_value=[0, '', ''])
def test_create_volume_from_snapshot(self, arg1, arg2, arg3, arg4, arg5):

    vol = self.driver.create_volume_from_snapshot(self.test_volume, self.test_snapshot)
    self.assertIsNotNone(vol)
    return
