#NEWLINE# def create_test_keyspace( cursor ) : #NEWLINE# #INDENT# ksname = make_test_ks_name ( ) #NEWLINE# qksname = quote_name ( ksname ) #NEWLINE# cursor . execute ( ( "\n        CREATE KEYSPACE %s WITH replication =\n            {'class': 'SimpleStrategy', 'replication_factor': 1};\n    " % quote_name ( ksname ) ) ) #NEWLINE# cursor . execute ( ( 'USE %s;' % qksname ) ) #NEWLINE# TEST_KEYSPACES_CREATED . append ( ksname ) #NEWLINE# return ksname