#NEWLINE# def test_rename_schema( self ) : #NEWLINE# #INDENT# 'Rename an existing schema' #NEWLINE# inmap = self . std_map ( ) #NEWLINE# inmap . update ( { #NEWLINE# #INDENT# 'schema s2' : { #NEWLINE# #INDENT# 'oldname' : 's1' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# sql = self . to_sql ( inmap , [ CREATE_STMT ] ) #NEWLINE# assert ( inmap == [ 'ALTER SCHEMA s1 RENAME TO s2' ] )