<s> from pycassa . system_manager import SystemManager <EOL> TEST_KS = '<STR_LIT>' <EOL> def setup_package ( ) : <EOL> sys = SystemManager ( ) <EOL> if TEST_KS in sys . list_keyspaces ( ) : <EOL> sys . drop_keyspace ( TEST_KS ) <EOL> try : <EOL> sys . create_keyspace ( TEST_KS , '<STR_LIT>' , { '<STR_LIT>' : '<STR_LIT:1>' } ) <EOL> sys . create_column_family ( TEST_KS , '<STR_LIT>' ) <EOL> sys . create_column_family ( TEST_KS , '<STR_LIT>' , super = True ) <EOL> sys . create_column_family ( TEST_KS , '<STR_LIT>' ) <EOL> sys . create_index ( TEST_KS , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> sys . create_column_family ( TEST_KS , '<STR_LIT>' , <EOL> default_validation_class = '<STR_LIT>' ) <EOL> sys . create_column_family ( TEST_KS , '<STR_LIT>' , super = True , <EOL> default_validation_class = '<STR_LIT>' ) <EOL> except Exception , e : <EOL> print e <EOL> try : <EOL> sys . drop_keyspace ( TEST_KS ) <EOL> except : <EOL> pass <EOL> raise e <EOL> sys . close ( ) <EOL> def teardown_package ( ) : <EOL> sys = SystemManager ( ) <EOL> if TEST_KS in sys . list_keyspaces ( ) : <EOL> sys . drop_keyspace ( TEST_KS ) <EOL> sys . close ( ) </s>
