'Test basic connection and usage'

def test_basic(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    session = cluster.connect()
    result = execute_until_pass(session, "\n                                                CREATE    KEYSPACE    clustertests\n                                                WITH    replication    =    {'class':    'SimpleStrategy',    'replication_factor':    '1'}\n                                                ")
    self.assertFalse(result)
    result = execute_with_long_wait_retry(session, '\n                                                CREATE    TABLE    clustertests.cf0    (\n                                                                a    text,\n                                                                b    text,\n                                                                c    text,\n                                                                PRIMARY    KEY    (a,    b)\n                                                )\n                                                ')
    self.assertFalse(result)
    result = session.execute("\n                                                INSERT    INTO    clustertests.cf0    (a,    b,    c)    VALUES    ('a',    'b',    'c')\n                                                ")
    self.assertFalse(result)
    result = session.execute('SELECT    *    FROM    clustertests.cf0')
    self.assertEqual([('a', 'b', 'c')], result)
    execute_with_long_wait_retry(session, 'DROP    KEYSPACE    clustertests')
    cluster.shutdown()
