#NEWLINE# def test_base_type_category( self ) : #NEWLINE# #INDENT# 'Map a base type' #NEWLINE# stmts = [ CREATE_SHELL_STMT , CREATE_FUNC_IN , CREATE_FUNC_OUT , "CREATE TYPE t1 (INPUT = t1textin, OUTPUT = t1textout, CATEGORY = 'S')" ] #NEWLINE# dbmap = self . to_map ( stmts ) #NEWLINE# assert ( dbmap [ 'schema public' ] [ 'type t1' ] == { #NEWLINE# #INDENT# 'input' : 't1textin' , #NEWLINE# 'output' : 't1textout' , #NEWLINE# 'internallength' : 'variable' , #NEWLINE# 'alignment' : 'int4' , #NEWLINE# 'storage' : 'plain' , #NEWLINE# 'category' : 'S' , #NEWLINE# #UNINDENT# } )