

@mock_redshift
def test_delete_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()
    groups = groups_response['DescribeClusterParameterGroupsResponse']['DescribeClusterParameterGroupsResult']['ParameterGroups']
    groups.should.have.length_of(2)
    conn.delete_cluster_parameter_group('my_parameter_group')
    groups_response = conn.describe_cluster_parameter_groups()
    groups = groups['DescribeClusterParameterGroupsResponse']['DescribeClusterParameterGroupsResult']['ParameterGroups']
    groups.should.have.length_of(1)
    conn.delete_cluster_parameter_group.when.called_with('not-a-parameter-group').should.throw(ClusterParameterGroupNotFound)

dataset/ETHPy150Open spulec/moto/tests/test_redshift/test_redshift.py test_delete_cluster_parameter_group/VarMisuse@80/155 `groups_response`->`groups`