#NEWLINE# def test_resource_pet( self ) : #NEWLINE# #INDENT# ' resource ' #NEWLINE# pet = app . raw . apis [ 'pet' ] #NEWLINE# self . assertTrue ( isinstance ( pet , Resource ) ) #NEWLINE# self . assertEqual ( pet . swaggerVersion , '1.2' ) #NEWLINE# self . assertEqual ( pet . apiVersion , '1.0.0' ) #NEWLINE# self . assertEqual ( pet . basePath , 'http://petstore.swagger.wordnik.com/api' ) #NEWLINE# self . assertEqual ( pet . resourcePath , '/pet' ) #NEWLINE# self . assertTrue ( ( 'application/json' in pet . produces ) ) #NEWLINE# self . assertTrue ( ( 'application/xml' in pet . produces ) ) #NEWLINE# self . assertTrue ( ( 'text/plain' in pet . produces ) ) #NEWLINE# self . assertTrue ( ( 'text/html' in pet . produces ) )