Module Expr Str Import alias ImportFrom alias alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword TupleLoad Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Num decorator_list AttributeLoad NameLoad attr decorator_list Expr Call Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call NameLoad Str keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr decorator_list decorator_list
N/A N/A tests/test_decorators.py.

Tests that class based hug routes interact as expected

Copyright (C) 2016 Timothy Edmund Crosley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

 N/A hug hug.routing CLIRouter ExceptionRouter NotFoundRouter SinkRouter StaticRouter URLRouter N/A api N/A N/A hug API __name__ test_simple_class_based_view N/A N/A N/A N/A N/A Test creating class based routers MyClass N/A object N/A my_method N/A N/A self N/A N/A N/A hi there! N/A N/A N/A N/A hug object get my_method_two N/A N/A self N/A N/A N/A bye N/A N/A N/A N/A hug object post N/A N/A N/A N/A hug object urls /endpoint requires N/A N/A N/A N/A N/A N/A N/A hug test get api endpoint data hi there! N/A N/A N/A N/A N/A N/A hug test post api endpoint data bye N/A test_simple_class_based_method_view N/A N/A N/A N/A N/A Test creating class based routers using method mappings EndPoint N/A object N/A get N/A N/A self N/A N/A N/A hi there! N/A post N/A N/A self N/A N/A N/A bye N/A N/A N/A N/A N/A hug object http_methods N/A N/A N/A N/A N/A N/A hug test get api endpoint data hi there! N/A N/A N/A N/A N/A N/A hug test post api endpoint data bye N/A test_routing_class_based_method_view_with_sub_routing N/A N/A N/A N/A N/A Test creating class based routers using method mappings, then overriding url on sub method EndPoint N/A object N/A get N/A N/A self N/A N/A N/A hi there! N/A post N/A N/A self N/A N/A N/A bye N/A N/A N/A N/A hug object urls /home/ N/A N/A N/A N/A hug object http_methods N/A N/A N/A N/A N/A N/A hug test get api endpoint data hi there! N/A N/A N/A N/A N/A N/A hug test post api home data bye N/A test_routing_instance N/A N/A N/A N/A N/A Test to ensure its possible to route a class after it is instanciated EndPoint N/A object N/A one N/A N/A self N/A N/A N/A one N/A N/A hug object two N/A N/A self N/A N/A N/A 2 N/A N/A hug object N/A N/A N/A N/A N/A N/A hug object get N/A EndPoint N/A N/A N/A N/A N/A N/A hug test get api one data one N/A N/A N/A N/A N/A N/A hug test get api two data 2 N/A TestAPIRouter N/A object N/A N/A Test to ensure the API router enables easily reusing all other routing types while routing to an API N/A router N/A N/A N/A hug route API __name__ test_route_url N/A N/A self N/A N/A N/A Test to ensure you can dynamically create a URL route attached to a hug API N/A N/A N/A N/A N/A N/A self router urls /hi/ route N/A N/A URLRouter /hi/ api api route N/A test_not_found N/A N/A self N/A N/A N/A Test to ensure you can dynamically create a Not Found route attached to a hug API N/A N/A N/A N/A N/A N/A self router not_found route N/A N/A NotFoundRouter api api route N/A test_static N/A N/A self N/A N/A N/A Test to ensure you can dynamically create a static route attached to a hug API N/A N/A N/A N/A N/A N/A self router static route N/A N/A StaticRouter api api route N/A test_sink N/A N/A self N/A N/A N/A Test to ensure you can dynamically create a sink route attached to a hug API N/A N/A N/A N/A N/A N/A self router sink route N/A N/A SinkRouter api api route N/A test_exception N/A N/A self N/A N/A N/A Test to ensure you can dynamically create an Exception route attached to a hug API N/A N/A N/A N/A N/A N/A self router exception route N/A N/A ExceptionRouter api api route N/A test_cli N/A N/A self N/A N/A N/A Test to ensure you can dynamically create a CLI route attached to a hug API N/A N/A N/A N/A N/A N/A self router cli route N/A N/A CLIRouter api api route N/A test_object N/A N/A self N/A N/A N/A Test to ensure it's possible to route objects through a specified API instance N/A N/A N/A N/A N/A N/A self router object route N/A N/A N/A N/A hug route Object api api route N/A N/A