#NEWLINE# def test_path_variables( self ) : #NEWLINE# #INDENT# api = restplus . Api ( self . app ) #NEWLINE# @ api . route ( '/test/<id>/<int:integer>/<float:number>/' ) #NEWLINE# class Test ( restplus . Resource ) : #NEWLINE# #INDENT# @ api . doc ( 'test_post' ) #NEWLINE# def post( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# data = api . as_postman ( ) #NEWLINE# validate ( data , schema ) #NEWLINE# self . assertEqual ( len ( data [ 'requests' ] ) , 1 ) #NEWLINE# request = data [ 'requests' ] [ 0 ] #NEWLINE# self . assertEqual ( request [ 'url' ] , 'http://localhost/test/:id/:integer/:number/' ) #NEWLINE# self . assertEqual ( request [ 'pathVariables' ] , { #NEWLINE# #INDENT# 'id' : '' , #NEWLINE# 'integer' : 0 , #NEWLINE# 'number' : 0 , #NEWLINE# #UNINDENT# } )