#NEWLINE# def test_with_description( self ) : #NEWLINE# #INDENT# nested_fields = self . api . model ( 'NestedModel' , { #NEWLINE# #INDENT# 'name' : fields . String , #NEWLINE# #UNINDENT# } ) #NEWLINE# field = fields . Nested ( nested_fields , description = 'A description' ) #NEWLINE# assert_equal ( field . __schema__ , { #NEWLINE# #INDENT# '$ref' : '#/definitions/NestedModel' , #NEWLINE# 'description' : 'A description' , #NEWLINE# #UNINDENT# } )