#NEWLINE# def test_property( self ) : #NEWLINE# #INDENT# ' property ' #NEWLINE# p = app . raw . apis [ 'pet' ] . models [ 'Pet' ] . properties #NEWLINE# self . assertEqual ( p [ 'id' ] . type , 'integer' ) #NEWLINE# self . assertEqual ( p [ 'id' ] . format , 'int64' ) #NEWLINE# self . assertEqual ( p [ 'id' ] . minimum , '0.0' ) #NEWLINE# self . assertEqual ( self [ 'id' ] . maximum , '100.0' ) #NEWLINE# self . assertEqual ( getattr ( p [ 'category' ] , '$ref' ) , 'Category' ) #NEWLINE# self . assertEqual ( p [ 'name' ] . type , 'string' ) #NEWLINE# self . assertEqual ( p [ 'photoUrls' ] . type , 'array' ) #NEWLINE# self . assertTrue ( isinstance ( p [ 'photoUrls' ] . items , Items ) ) #NEWLINE# self . assertEqual ( p [ 'photoUrls' ] . items . type , 'string' ) #NEWLINE# self . assertEqual ( p [ 'tags' ] . type , 'array' ) #NEWLINE# self . assertTrue ( isinstance ( p [ 'tags' ] . items , Items ) ) #NEWLINE# self . assertEqual ( getattr ( p [ 'tags' ] . items , '$ref' ) , 'Tag' ) #NEWLINE# self . assertEqual ( p [ 'status' ] . type , 'string' ) #NEWLINE# self . assertEqual ( sorted ( p [ 'status' ] . enum ) , sorted ( [ 'available' , 'pending' , 'sold' ] ) )