'Test case clone volume when there is no replica.'

@mock.patch('cinder.volume.drivers.veritas.utils.message_data_plane')
@mock.patch('cinder.volume.drivers.veritas.vrtshyperscale.HyperScaleDriver._select_rt')
def test_create_cloned_volume_with_no_replica(self, mock_srt, mock_mdp):

    mock_obj = {'payload': {}}
    mock_mdp.return_value = (mock_obj, None)
    mock_srt.return_value = (None, None)
    vol_a = _stub_volume()
    vol_b = _stub_volume()
    self.assertDictContainsSubset({'provider_location': 'hyperscale-sv:/hyperscale'}, self.driver.create_cloned_volume(vol_b, vol_a))
