#NEWLINE# def test_retype( self ) : #NEWLINE# #INDENT# fields = brewery . FieldList ( [ 'a' , 'b' , 'c' , 'd' ] ) #NEWLINE# self . assertEqual ( 'unknown' , fields . field ( 'a' ) . storage_type ) #NEWLINE# retype_dict = { #NEWLINE# #INDENT# 'a' : { #NEWLINE# #INDENT# 'storage_type' : 'integer' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# fields . retype ( retype_dict ) #NEWLINE# self . assertEqual ( 'integer' , fields . field ( 'a' ) . storage_type ) #NEWLINE# retype_dict = { #NEWLINE# #INDENT# 'a' : { #NEWLINE# #INDENT# 'name' : 'foo' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( Exception , fields . retype , retype_dict )