

@mock_redshift
def test_create_cluster_parameter_group():
    conn = boto.connect_redshift()
    conn.create_cluster_parameter_group('my_parameter_group', 'redshift-1.0', 'This is my parameter group')
    groups_response = conn.describe_cluster_parameter_groups('my_parameter_group')
    my_group = groups_response['DescribeClusterParameterGroupsResponse']['DescribeClusterParameterGroupsResult']['ParameterGroups'][0]
    my_group['ParameterGroupName'].should.equal('my_parameter_group')
    my_group['ParameterGroupFamily'].should.equal('redshift-1.0')
    my_group['Description'].should.equal('This is my parameter group')

dataset/ETHPy150Open spulec/moto/tests/test_redshift/test_redshift.py test_create_cluster_parameter_group/original