#NEWLINE# def test_getPetById( self ) : #NEWLINE# #INDENT# ' Pet.getPetById ' #NEWLINE# ( req , _ ) = app . op [ 'getPetById' ] ( petId = 100 ) #NEWLINE# req . prepare ( ) #NEWLINE# self . assertEqual ( req . url , 'http://petstore.swagger.wordnik.com/api/pet/100' ) #NEWLINE# self . assertEqual ( _ . path , '/api/pet/100' ) #NEWLINE# self . assertEqual ( req . method , 'get' ) #NEWLINE# self . assertEqual ( req . header , { #NEWLINE# #INDENT# 'Accept' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( req . data , None ) #NEWLINE# self . assertEqual ( req . query , [ ] )