#NEWLINE# def test_with_enum( self ) : #NEWLINE# #INDENT# enum = [ 'A' , 'B' , 'C' ] #NEWLINE# field = fields . String ( enum = enum ) #NEWLINE# assert ( not field . required ) #NEWLINE# assert_equal ( field . __schema__ , { #NEWLINE# #INDENT# 'type' : 'string' , #NEWLINE# 'enum' : enum , #NEWLINE# 'example' : self [ 0 ] , #NEWLINE# #UNINDENT# } )