'Partial rename filtering with cluster with host level info.'

def test_volume_include_in_cluster_by_cluster_multiple(self):

    vols = self._create_volumes_to_test_include_in()[0:2]
    cluster_name = 'cluster1'
    new_cluster_name = 'my_cluster'
    result = db.volume_include_in_cluster(self.ctxt, new_cluster_name, partial_rename=True, cluster_name=cluster_name)
    self.assertEqual(2, result)
    db_vols = [db.volume_get(self.ctxt, vols[0].id), db.volume_get(self.ctxt, vols[1].id)]
    for i in range(2):
        self.assertEqual((new_cluster_name + vols[i].cluster_name[len(cluster_name):]), db_vols[i].cluster_name)
