#NEWLINE# def test_create_enum( self ) : #NEWLINE# #INDENT# 'Create an enum' #NEWLINE# inmap = self . std_map ( ) #NEWLINE# inmap [ 'schema public' ] . update ( { #NEWLINE# #INDENT# 'type t1' : { #NEWLINE# #INDENT# 'labels' : [ 'red' , 'green' , 'blue' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# sql = self . to_sql ( self ) #NEWLINE# assert ( fix_indent ( sql [ 0 ] ) == CREATE_ENUM_STMT )