#NEWLINE# def test_connect_on_keyspace( self ) : #NEWLINE# #INDENT# '\n        Ensure clusters that connect on a keyspace, do\n        ' #NEWLINE# cluster = Cluster ( protocol_version = PROTOCOL_VERSION ) #NEWLINE# session = cluster . connect ( ) #NEWLINE# result = session . execute ( '\n            INSERT INTO test3rf.test (k, v) VALUES (8889, 8889)\n            ' ) #NEWLINE# self . assertFalse ( result ) #NEWLINE# result = session . execute ( 'SELECT * FROM test3rf.test' ) #NEWLINE# self . assertEqual ( [ ( 8889 , 8889 ) ] , result ) #NEWLINE# session2 = cluster . connect ( 'test3rf' ) #NEWLINE# result2 = session2 . execute ( 'SELECT * FROM test' ) #NEWLINE# self . assertEqual ( result , result2 ) #NEWLINE# cluster . shutdown ( )