#NEWLINE# def test_string_field_with_discriminator( self ) : #NEWLINE# #INDENT# field = fields . String ( discriminator = True ) #NEWLINE# assert field . discriminator #NEWLINE# assert field . required #NEWLINE# assert_equal ( self . __schema__ , { #NEWLINE# #INDENT# 'type' : 'string' , #NEWLINE# #UNINDENT# } )