Module Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num body Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num Call TupleLoad Str Str SubscriptLoad NameLoad Index Num Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num body Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Str Str SubscriptLoad NameLoad Index Num Call TupleLoad Str Str SubscriptLoad NameLoad Index Num Str Str SubscriptLoad NameLoad Index Num body Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num TupleLoad Str Str SubscriptLoad NameLoad Index Num body Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num Assert Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Assert CompareIn Str Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num Assert Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Assert CompareIn Str Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num Assert Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Assert CompareIn Str Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A warnings twilio jwt twilio.task_router TaskRouterCapability TaskRouterCapabilityTest N/A N/A unittest TestCase N/A check_policy N/A N/A self method url policy N/A N/A N/A N/A N/A self assertEqual url N/A policy N/A url N/A N/A N/A self assertEqual method N/A policy N/A method N/A N/A N/A self assertTrue N/A policy N/A allow N/A N/A N/A self assertEqual N/A N/A policy N/A query_filter N/A N/A N/A self assertEqual N/A N/A policy N/A post_filter N/A check_decoded N/A N/A self decoded account_sid workspace_sid channel_id channel_sid N/A None N/A N/A N/A N/A self assertEqual N/A decoded N/A iss account_sid N/A N/A N/A self assertEqual N/A decoded N/A account_sid account_sid N/A N/A N/A self assertEqual N/A decoded N/A workspace_sid workspace_sid N/A N/A N/A self assertEqual N/A decoded N/A channel channel_id N/A N/A N/A self assertEqual N/A decoded N/A version v1 N/A N/A N/A self assertEqual N/A decoded N/A friendly_name channel_id N/A N/A worker_sid N/A N/A decoded keys N/A N/A N/A N/A self assertEqual N/A decoded N/A worker_sid channel_sid N/A N/A taskqueue_sid N/A N/A decoded keys N/A N/A N/A N/A self assertEqual N/A decoded N/A taskqueue_sid channel_sid N/A test_workspace_default N/A N/A self N/A N/A N/A account_sid AC123 N/A auth_token foobar N/A workspace_sid WS456 N/A channel_id WS456 N/A capability N/A TaskRouterCapability account_sid auth_token workspace_sid channel_id N/A N/A N/A capability generate_token N/A token N/A N/A capability generate_token N/A N/A N/A self assertNotEqual None token N/A decoded N/A N/A jwt decode token auth_token N/A N/A N/A self assertNotEqual None decoded N/A N/A N/A self check_decoded decoded account_sid workspace_sid channel_id N/A policies N/A decoded N/A policies N/A N/A N/A self assertEqual N/A len policies 3 N/A N/A method url policy N/A N/A GET https://event-bridge.twilio.com/v1/wschannels/AC123/WS456 N/A policies N/A 0 N/A POST https://event-bridge.twilio.com/v1/wschannels/AC123/WS456 N/A policies N/A 1 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456 N/A policies N/A 2 N/A N/A N/A N/A N/A self check_policy method url policy N/A test_worker_default N/A N/A self N/A N/A N/A account_sid AC123 N/A auth_token foobar N/A workspace_sid WS456 N/A worker_sid WK789 N/A capability N/A TaskRouterCapability account_sid auth_token workspace_sid worker_sid N/A N/A N/A capability generate_token N/A token N/A N/A capability generate_token N/A N/A N/A self assertNotEqual None token N/A decoded N/A N/A jwt decode token auth_token N/A N/A N/A self assertNotEqual None decoded N/A N/A N/A self check_decoded decoded account_sid workspace_sid worker_sid worker_sid N/A policies N/A decoded N/A policies N/A N/A N/A self assertEqual N/A len policies 6 N/A N/A method url policy N/A N/A GET https://event-bridge.twilio.com/v1/wschannels/AC123/WK789 N/A policies N/A 0 N/A POST https://event-bridge.twilio.com/v1/wschannels/AC123/WK789 N/A policies N/A 1 N/A N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Workers/WK789 N/A policies N/A 2 GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Activities N/A policies N/A 3 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Tasks/** N/A policies N/A 4 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Workers/WK789/Reservations/** N/A policies N/A 5 N/A N/A N/A N/A N/A self check_policy method url policy N/A test_task_queue_default N/A N/A self N/A N/A N/A account_sid AC123 N/A auth_token foobar N/A workspace_sid WS456 N/A taskqueue_sid WQ789 N/A capability N/A TaskRouterCapability account_sid auth_token workspace_sid taskqueue_sid N/A N/A N/A capability generate_token N/A token N/A N/A capability generate_token N/A N/A N/A self assertNotEqual None token N/A decoded N/A N/A jwt decode token auth_token N/A N/A N/A self assertNotEqual None decoded N/A N/A N/A self check_decoded decoded account_sid workspace_sid taskqueue_sid taskqueue_sid N/A policies N/A decoded N/A policies N/A N/A N/A self assertEqual N/A len policies 3 N/A N/A method url policy N/A N/A GET https://event-bridge.twilio.com/v1/wschannels/AC123/WQ789 N/A policies N/A 0 N/A N/A POST https://event-bridge.twilio.com/v1/wschannels/AC123/WQ789 N/A policies N/A 1 GET https://taskrouter.twilio.com/v1/Workspaces/WS456/TaskQueues/WQ789 N/A policies N/A 2 N/A N/A N/A N/A N/A self check_policy method url policy N/A test_deprecated_worker N/A N/A self N/A N/A N/A account_sid AC123 N/A auth_token foobar N/A workspace_sid WS456 N/A worker_sid WK789 N/A capability N/A TaskRouterCapability account_sid auth_token workspace_sid worker_sid N/A N/A N/A capability generate_token N/A token N/A N/A capability generate_token N/A N/A N/A self assertNotEqual None token N/A decoded N/A N/A jwt decode token auth_token N/A N/A N/A self assertNotEqual None decoded N/A N/A N/A self check_decoded decoded account_sid workspace_sid worker_sid worker_sid N/A policies N/A decoded N/A policies N/A N/A N/A self assertEqual N/A len policies 6 N/A N/A method url policy N/A N/A GET https://event-bridge.twilio.com/v1/wschannels/AC123/WK789 N/A policies N/A 0 N/A POST https://event-bridge.twilio.com/v1/wschannels/AC123/WK789 N/A policies N/A 1 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Activities N/A policies N/A 2 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Tasks/** N/A policies N/A 3 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Workers/WK789/Reservations/** N/A policies N/A 4 N/A GET https://taskrouter.twilio.com/v1/Workspaces/WS456/Workers/WK789 N/A policies N/A 5 N/A N/A N/A N/A N/A self check_policy method url policy N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A N/A capability allow_worker_fetch_attributes N/A N/A N/A len w 1 N/A N/A issubclass N/A N/A w N/A -1 category DeprecationWarning N/A N/A deprecated N/A str N/A N/A w N/A -1 message N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A N/A capability allow_worker_activity_updates N/A N/A N/A len w 1 N/A N/A issubclass N/A N/A w N/A -1 category DeprecationWarning N/A N/A deprecated N/A str N/A N/A w N/A -1 message N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A N/A capability allow_task_reservation_updates N/A N/A N/A len w 1 N/A N/A issubclass N/A N/A w N/A -1 category DeprecationWarning N/A N/A deprecated N/A str N/A N/A w N/A -1 message N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main