

@mock_redshift
def test_create_cluster_security_group():
    conn = boto.connect_redshift()
    conn.create_cluster_security_group('my_security_group', 'This is my security group')
    groups_response = conn.describe_cluster_security_groups('my_security_group')
    my_group = groups_response['DescribeClusterSecurityGroupsResponse']['DescribeClusterSecurityGroupsResult']['ClusterSecurityGroups'][0]
    my_group['ClusterSecurityGroupName'].should.equal('my_security_group')
    my_group['Description'].should.equal('This is my security group')
    list(my_group['IPRanges']).should.equal([])

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