'Tests for any schema disagreements using the same keyspace multiple times'

def test_for_schema_disagreements_same_keyspace(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    session = cluster.connect(wait_for_all_pools=True)
    for i in range(30):
        try:
            execute_until_pass(session, "CREATE    KEYSPACE    test    WITH    replication    =    {'class':    'SimpleStrategy',    'replication_factor':    1}")
        except AlreadyExists:
            execute_until_pass(session, 'DROP    KEYSPACE    test')
            execute_until_pass(session, "CREATE    KEYSPACE    test    WITH    replication    =    {'class':    'SimpleStrategy',    'replication_factor':    1}")
        execute_until_pass(session, 'CREATE    TABLE    test.cf    (key    int    PRIMARY    KEY,    value    int)')
        for j in range(100):
            execute_until_pass(session, 'INSERT    INTO    test.cf    (key,    value)    VALUES    ({0},    {0})'.format(j))
        execute_until_pass(session, 'DROP    KEYSPACE    test')
    cluster.shutdown()
