

@mock_redshift
def test_create_cluster_with_parameter_group():
    conn = boto.connect_redshift()
    conn.create_cluster_parameter_group('my_parameter_group', 'redshift-1.0', 'This is my parameter group')
    conn.create_cluster('my_cluster', node_type='dw.hs1.xlarge', master_username='username', master_user_password='password', cluster_parameter_group_name='my_parameter_group')
    cluster_response = conn.describe_clusters('my_cluster')
    cluster = cluster_response['DescribeClustersResponse']['DescribeClustersResult']['Clusters'][0]
    cluster_response['ClusterParameterGroups'][0]['ParameterGroupName'].should.equal('my_parameter_group')

dataset/ETHPy150Open spulec/moto/tests/test_redshift/test_redshift.py test_create_cluster_with_parameter_group/VarMisuse@79/166 `cluster`->`cluster_response`