Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Str Assign NameStore NameLoad Assign NameStore NameLoad Expr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse Raise Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Global identifier Global identifier Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Num attr Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list decorator_list Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad Call NameLoad keyword NameLoad TupleLoad Str NameLoad Call NameLoad keyword NameLoad TupleLoad Str NameLoad keyword NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore NameStore NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call NameLoad keyword Num keyword Str keyword Call NameLoad keyword BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Str Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call NameLoad keyword Num keyword Str keyword Call NameLoad keyword BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Str Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Num keyword Call NameLoad keyword BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Num keyword Call NameLoad keyword BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Global identifier Global identifier Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Str keyword Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad keyword BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list AttributeLoad NameLoad attr decorator_list
N/A __future__ absolute_import tornado web testing tornado.ioloop IOLoop pyswagger SwaggerApp pyswagger.contrib.client.tornado TornadoClient utils create_pet_db get_test_data_folder pet_Mary N/A json N/A six N/A sapp N/A N/A SwaggerApp _create_ N/A get_test_data_folder version 1.2 which wordnik N/A received_file None N/A received_meta None N/A  refer to pyswagger.tests.data.v1_2.wordnik for details  RESTHandler N/A N/A web RequestHandler N/A N/A  base implementation of RequestHandler,
    accept a db as init paramaeter.
     initialize N/A N/A self db N/A N/A N/A N/A self db db N/A prepare N/A N/A self N/A N/A N/A 
        According to FAQ of tornado, they won't handle json media-type.
         N/A N/A N/A N/A super RESTHandler self prepare N/A content_type N/A N/A N/A N/A self request headers get Content-Type N/A N/A content_type N/A N/A content_type startswith application/json N/A N/A N/A N/A content_type rfind charset=UTF-8 N/A N/A N/A self json_args N/A N/A json loads N/A N/A N/A N/A self request body decode utf-8 N/A N/A N/A N/A web HTTPError N/A unsupported application type: content_type N/A N/A PetRequestHandler N/A RESTHandler N/A N/A  refer to /pet  put N/A N/A self N/A N/A N/A pet N/A self json_args N/A N/A N/A isinstance N/A pet N/A id int N/A N/A N/A N/A self set_status 400 N/A N/A N/A N/A N/A self db update_ pet N/A N/A N/A N/A self set_status 404 N/A N/A N/A N/A self set_status 200 N/A N/A N/A self finish N/A post N/A N/A self N/A N/A N/A pet N/A self json_args N/A N/A N/A N/A N/A self db read_ N/A pet N/A id None N/A N/A N/A N/A self set_status 409 N/A N/A N/A N/A N/A self db create_ pet N/A N/A N/A self set_status 200 N/A N/A N/A self finish N/A N/A PetIdRequestHandler N/A RESTHandler N/A N/A  refer to /pet/{petId}  delete N/A N/A self id N/A N/A N/A N/A N/A N/A N/A self db delete_ N/A int id N/A N/A N/A N/A self set_status 400 N/A N/A N/A self finish N/A get N/A N/A self id N/A N/A N/A pet N/A N/A N/A self db read_ N/A int id N/A N/A pet N/A N/A N/A N/A self set_status 404 N/A N/A N/A N/A self write N/A N/A json dumps pet N/A N/A N/A self finish N/A N/A ImageRequestHandler N/A N/A web RequestHandler N/A N/A  test for file upload  post N/A N/A self N/A N/A N/A  pass additionalMetadata and file to global
        variables.
         N/A received_file N/A received_meta N/A received_file N/A N/A N/A N/A N/A self request files N/A file N/A 0 body N/A received_meta N/A N/A self get_argument additionalMetadata N/A N/A N/A  global variables  N/A pet_db N/A create_pet_db N/A app N/A N/A web Application N/A N/A /api/pet PetRequestHandler N/A dict db pet_db N/A /api/pet/(\d+) PetIdRequestHandler N/A dict db pet_db N/A /api/pet/uploadImage ImageRequestHandler debug True TornadoTestCase N/A N/A testing AsyncHTTPTestCase N/A N/A setUp N/A N/A self N/A N/A N/A received_file N/A received_meta N/A received_file received_meta None N/A N/A N/A N/A super TornadoTestCase self setUp N/A N/A self client N/A TornadoClient N/A get_new_ioloop N/A N/A self N/A N/A N/A N/A N/A IOLoop instance N/A get_app N/A N/A self N/A N/A N/A app N/A app N/A test_updatePet N/A N/A self N/A N/A N/A  updatePet  N/A pet_db N/A resp N/A N/A N/A N/A self client request N/A N/A N/A sapp op N/A updatePet body N/A dict id 1 name Tom1 opt N/A dict url_netloc N/A localhost: N/A str N/A N/A self get_http_port N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A N/A N/A pet_db read_ 1 N/A name Tom1 N/A N/A testing gen_test test_addPet N/A N/A self N/A N/A N/A  addPet  N/A pet_db N/A resp N/A N/A N/A N/A self client request N/A N/A N/A sapp op N/A addPet body N/A dict id 5 name Mission opt N/A dict url_netloc N/A localhost: N/A str N/A N/A self get_http_port N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A N/A N/A pet_db read_ 5 N/A name Mission N/A N/A testing gen_test test_deletePet N/A N/A self N/A N/A N/A  deletePet  N/A resp N/A N/A N/A N/A self client request N/A N/A N/A sapp op N/A deletePet petId 5 opt N/A dict url_netloc N/A localhost: N/A str N/A N/A self get_http_port N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A N/A pet_db read_ 5 None N/A N/A testing gen_test test_getPetById N/A N/A self N/A N/A N/A  getPetById  N/A resp N/A N/A N/A N/A self client request N/A N/A N/A sapp op N/A getPetById petId 2 opt N/A dict url_netloc N/A localhost: N/A str N/A N/A self get_http_port N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A resp data pet_Mary N/A N/A testing gen_test test_uploadFile N/A N/A self N/A N/A N/A  uploadFile  N/A received_file N/A received_meta N/A resp N/A N/A N/A N/A self client request N/A N/A N/A sapp op N/A uploadFile additionalMetadata a test file file N/A dict data N/A N/A six StringIO a test Content filename test.txt opt N/A dict url_netloc N/A localhost: N/A str N/A N/A self get_http_port N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A N/A received_file decode a test Content N/A N/A N/A self assertEqual received_meta a test file N/A N/A testing gen_test N/A