

@mock_redshift
def test_create_single_node_cluster():
    conn = boto.redshift.connect_to_region('us-east-1')
    cluster_identifier = 'my_cluster'
    conn.create_cluster(cluster_identifier, node_type='dw.hs1.xlarge', master_username='username', master_user_password='password', db_name='my_db', cluster_type='single-node')
    cluster_response = conn.describe_clusters(cluster_identifier)
    cluster = cluster_response['DescribeClustersResponse']['DescribeClustersResult']['Clusters'][0]
    cluster['ClusterIdentifier'].should.equal(cluster_identifier)
    cluster['NodeType'].should.equal('dw.hs1.xlarge')
    conn['MasterUsername'].should.equal('username')
    cluster['DBName'].should.equal('my_db')
    cluster['NumberOfNodes'].should.equal(1)

dataset/ETHPy150Open spulec/moto/tests/test_redshift/test_redshift.py test_create_single_node_cluster/VarMisuse@103/188 `cluster`->`conn`