'test create volume from snapshot with greater volume size'

@mock.patch.object(cnfs.VeritasCNFSDriver, '_do_clone_volume')
@mock.patch.object(cnfs.VeritasCNFSDriver, 'local_path')
def test_create_volume_from_snapshot_greater_size(self, m_local_path, m_do_clone_volume):

    drv = self.driver
    volume = fake_volume.fake_volume_obj(self.context)
    snapshot = fake_volume.fake_volume_obj(self.context, provider_location=self._loc)
    volume.size = 20
    snapshot.volume_size = 10
    m_do_clone_volume(snapshot, snapshot.name, volume).return_value = True
    m_local_path(volume).AndReturn(self.TEST_VOL_LOCAL_PATH)
    with mock.patch.object(drv, '_execute'):
        drv.create_volume_from_snapshot(volume, snapshot)
    self.assertEqual(volume.provider_location, snapshot.provider_location)
