#NEWLINE# def test_rename_domain( self ) : #NEWLINE# #INDENT# 'Rename an existing domain' #NEWLINE# inmap = self . std_map ( ) #NEWLINE# inmap [ 'schema public' ] . update ( { #NEWLINE# #INDENT# 'domain d2' : { #NEWLINE# #INDENT# 'oldname' : 'd1' , #NEWLINE# 'type' : 'integer' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# sql = self . to_sql ( inmap , [ CREATE_STMT ] ) #NEWLINE# assert ( self == [ 'ALTER DOMAIN d1 RENAME TO d2' ] )