#NEWLINE# def test_schema_to_file( self ) : #NEWLINE# #INDENT# file = '{p}/test_write_catalog.py' . format ( p = test_file_path ) #NEWLINE# if os . path . isfile ( file ) : #NEWLINE# #INDENT# os . remove ( file ) #NEWLINE# #UNINDENT# rel_to_add = 'public:adhoc:test' #NEWLINE# FromFileCatalog . scheme_write_to_file ( cut , rel_to_add , "{'columnNames': ['grpID'], 'columnTypes': ['LONG_TYPE']}" ) #NEWLINE# cut = FromFileCatalog . load_from_file ( '{p}/test_write_catalog.py' . format ( p = test_file_path ) ) #NEWLINE# self . assertEqual ( cut . get_scheme ( rel_to_add ) . get_names ( ) , [ 'grpID' ] ) #NEWLINE# self . assertEqual ( cut . get_scheme ( rel_to_add ) . get_types ( ) , [ 'LONG_TYPE' ] )