Module Expr Str Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assert CompareEq NameLoad Dict Str Str Str Num Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Return Dict Str Str NameLoad NameLoad decorator_list decorator_list Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assert CompareEq NameLoad Dict Str Str Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Return Dict Str Str NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str decorator_list Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assert CompareEq NameLoad Dict Str Str Num Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Return Dict Str Str NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str decorator_list Assign NameStore Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assert CompareEq NameLoad Dict Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Return Dict Str Str NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str decorator_list Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assert CompareEq NameLoad Dict Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Dict Str Str Str Str Str Str NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list Assign NameStore Dict Str Str Str Str Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIs SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareIs SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return Dict Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad Dict Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad Dict Str Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Assign NameStore Call NameLoad Print NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad Dict decorator_list
N/A N/A Tests for handling of JSON request data. N/A json N/A webob N/A wsgiservice test_default_value N/A N/A N/A N/A N/A Request parameters can have default values. User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo bar id N/A 5 N/A N/A N/A id bar foo id bar foo N/A N/A N/A data N/A foo bar baz1 baz2 N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A obj N/A N/A json loads N/A res body N/A obj N/A N/A obj N/A id foo bar 5 baz1 baz2 N/A test_default_value_overwrite N/A N/A N/A N/A N/A Parameters with default values can be overwritten in the request. User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo id N/A 5 N/A N/A N/A id foo id foo N/A N/A N/A data N/A id foo 8 bar N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A obj N/A N/A json loads N/A res body N/A obj N/A N/A obj N/A id foo 8 bar N/A test_default_value_validate_novalue N/A N/A N/A N/A N/A Default parameters are validated correctly when not passed in. User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo id N/A 5 N/A N/A N/A id foo id foo N/A N/A N/A wsgiservice validate id doc Foo N/A N/A data N/A foo bar N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A obj N/A N/A json loads N/A res body N/A obj N/A N/A obj N/A id foo 5 bar N/A test_default_value_validate N/A N/A N/A N/A N/A Default parameters are validated correctly when passed in. User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo id N/A 5 N/A N/A N/A id foo id foo N/A N/A N/A wsgiservice validate id doc Foo N/A N/A data N/A foo id bar None N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 400 N/A obj N/A N/A json loads N/A res body N/A obj N/A N/A obj N/A error Value for id must not be empty. N/A test_validate_empty N/A N/A N/A N/A N/A Empty strings are not accepted as values for default validation User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo id N/A 5 N/A N/A N/A id foo id foo N/A N/A N/A wsgiservice validate id doc Foo N/A N/A data N/A foo id bar N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 400 N/A obj N/A N/A json loads N/A res body N/A obj N/A N/A obj N/A error Value for id must not be empty. N/A test_convert_params N/A N/A N/A N/A N/A Convert parameters using the function given. User N/A N/A wsgiservice Resource N/A POST N/A N/A self foo bar baz N/A N/A N/A N/A foo foo_type bar bar_type baz baz_type foo N/A str N/A type foo bar N/A str N/A type bar baz N/A str N/A type baz N/A N/A N/A wsgiservice validate foo convert int N/A N/A wsgiservice validate bar convert repr N/A N/A wsgiservice validate baz convert int N/A N/A data N/A foo bar baz 193 testing 212 N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 200 N/A obj N/A N/A json loads N/A res body N/A N/A N/A obj N/A foo 193 N/A N/A N/A obj N/A foo_type <type 'int'> N/A N/A N/A obj N/A bar u'testing' N/A N/A N/A obj N/A bar_type <type 'str'> N/A N/A N/A obj N/A baz 212 N/A N/A N/A obj N/A baz_type <type 'int'> N/A test_convert_params_validate N/A N/A N/A N/A N/A Use the conversion function to validate as well. User N/A N/A wsgiservice Resource N/A POST N/A N/A self a N/A N/A N/A N/A a a N/A N/A N/A wsgiservice validate a convert int N/A N/A data N/A a b N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body N/A N/A json dumps data N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 400 N/A obj N/A N/A json loads N/A res body N/A N/A obj N/A error a value b does not validate. N/A test_raise_400_invalid_json N/A N/A N/A N/A N/A Validate the JSON that's passed in. User N/A N/A wsgiservice Resource N/A POST N/A N/A self N/A N/A N/A N/A self data N/A N/A N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body {"foo": N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 400 N/A obj N/A N/A json loads N/A res body N/A N/A obj N/A error Invalid JSON content data N/A test_accept_non_dict N/A N/A N/A N/A N/A Input data are not necessarily dictionaries.

    Make sure nothing breaks, but the `data` won't contain those values.
     User N/A N/A wsgiservice Resource N/A POST N/A N/A self N/A N/A N/A N/A self data N/A N/A N/A req N/A N/A N/A webob Request blank / headers N/A Accept Content-Type application/json application/json method POST body 123 N/A res N/A N/A webob Response N/A usr N/A User request req response res path_params N/A N/A res N/A usr N/A res N/A N/A N/A res status_int 200 N/A obj N/A N/A json loads N/A res body N/A N/A obj N/A N/A