Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str Str Num Num Str Call NameLoad Str ListLoad Call NameLoad Str Str Num Num Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Num Str Str Num Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Num Str Str Num Dict Str Str Str Str NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Str Str Dict Str Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Str Str Dict Str Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A unittest N/A json twilio.task_router.workflow_config WorkflowConfig twilio.task_router.workflow_rule WorkflowRule twilio.task_router.workflow_ruletarget WorkflowRuleTarget WorkflowConfigTest N/A N/A unittest TestCase N/A test_to_json N/A N/A self N/A N/A N/A rules N/A N/A WorkflowRule 1==1 N/A N/A WorkflowRuleTarget WQeae4fc2f4db7f377c5d3758fb08b79b7 1==1 1 20 SomeQ N/A WorkflowRule 1==1 N/A N/A WorkflowRuleTarget WQ19ebe92fb33522f018b5a31d805d94da 1==1 1 210 SomeOtherQ N/A def_target N/A WorkflowRuleTarget WQ9963154bf3122d0a0558f3763951d916 1==1 None None N/A config N/A WorkflowConfig rules def_target N/A N/A N/A self assertEqual True N/A N/A self is_json N/A N/A config to_json N/A test_from_json N/A N/A self N/A N/A N/A data N/A task_routing N/A filters default_filter N/A N/A expression friendly_name targets type == "sales" Sales N/A N/A queue expression WQec62de0e1148b8477f2e24579779c8b1 task.language IN worker.languages N/A expression friendly_name targets type == "marketing" Marketing N/A N/A queue expression WQ2acd4c1a41ffadce5d1bac9e1ce2fa9f task.language IN worker.languages N/A expression friendly_name targets type == "support" Support N/A N/A queue expression WQe5eb317eb23500ade45087ea6522896c task.language IN worker.languages N/A queue WQ05f810d2d130344fd56e3c91ece2e594 N/A config N/A N/A WorkflowConfig json2obj N/A N/A json dumps data N/A N/A N/A self assertEqual 3 N/A len N/A N/A config task_routing filters N/A N/A N/A self assertEqual 1 N/A len N/A N/A config task_routing default_filter N/A test_from_json2 N/A N/A self N/A N/A N/A data N/A task_routing N/A filters default_filter N/A N/A friendly_name expression targets SomeQ 1==1 N/A N/A priority queue expression timeout 1 WQXXXX 1==1 20 N/A friendly_name expression targets SomeOtherQ 1==1 N/A N/A priority queue expression timeout 1 WQXXXX 1==1 20 N/A priority queue expression timeout None WQYYYYY None None N/A config N/A N/A WorkflowConfig json2obj N/A N/A json dumps data N/A N/A N/A self assertEqual 2 N/A len N/A N/A config task_routing filters N/A N/A N/A self assertEqual 4 N/A len N/A N/A config task_routing default_filter N/A test_from_json_with_filter_friendly_name N/A N/A self N/A N/A N/A data N/A task_routing N/A filters default_filter N/A N/A expression filter_friendly_name targets type == "sales" Sales N/A N/A queue expression WQec62de0e1148b8477f2e24579779c8b1 task.language IN worker.languages N/A expression filter_friendly_name targets type == "marketing" Marketing N/A N/A queue expression WQ2acd4c1a41ffadce5d1bac9e1ce2fa9f task.language IN worker.languages N/A expression filter_friendly_name targets type == "support" Support N/A N/A queue expression WQe5eb317eb23500ade45087ea6522896c task.language IN worker.languages N/A queue WQ05f810d2d130344fd56e3c91ece2e594 N/A config N/A N/A WorkflowConfig json2obj N/A N/A json dumps data N/A N/A N/A self assertEqual 3 N/A len N/A N/A config task_routing filters N/A N/A N/A self assertEqual 1 N/A len N/A N/A config task_routing default_filter N/A expected_config_data N/A task_routing N/A default_filter filters N/A queue WQ05f810d2d130344fd56e3c91ece2e594 N/A N/A expression friendly_name targets type == "sales" Sales N/A N/A expression queue task.language IN worker.languages WQec62de0e1148b8477f2e24579779c8b1 N/A expression friendly_name targets type == "marketing" Marketing N/A N/A expression queue task.language IN worker.languages WQ2acd4c1a41ffadce5d1bac9e1ce2fa9f N/A expression friendly_name targets type == "support" Support N/A N/A expression queue task.language IN worker.languages WQe5eb317eb23500ade45087ea6522896c N/A expected_config_json N/A N/A json dumps expected_config_data sort_keys True indent 4 N/A N/A N/A self assertEqual N/A N/A config to_json expected_config_json N/A test_from_json_with_both_filter_and_friendly_name N/A N/A self N/A N/A N/A data N/A task_routing N/A filters default_filter N/A N/A expression filter_friendly_name friendly_name targets type == "sales" Sales Sales2 N/A N/A queue expression WQec62de0e1148b8477f2e24579779c8b1 task.language IN worker.languages N/A expression filter_friendly_name friendly_name targets type == "marketing" Marketing Marketing2 N/A N/A queue expression WQ2acd4c1a41ffadce5d1bac9e1ce2fa9f task.language IN worker.languages N/A expression filter_friendly_name friendly_name targets type == "support" Support Support2 N/A N/A queue expression WQe5eb317eb23500ade45087ea6522896c task.language IN worker.languages N/A queue WQ05f810d2d130344fd56e3c91ece2e594 N/A config N/A N/A WorkflowConfig json2obj N/A N/A json dumps data N/A N/A N/A self assertEqual 3 N/A len N/A N/A config task_routing filters N/A N/A N/A self assertEqual 1 N/A len N/A N/A config task_routing default_filter N/A expected_config_data N/A task_routing N/A default_filter filters N/A queue WQ05f810d2d130344fd56e3c91ece2e594 N/A N/A expression friendly_name targets type == "sales" Sales N/A N/A expression queue task.language IN worker.languages WQec62de0e1148b8477f2e24579779c8b1 N/A expression friendly_name targets type == "marketing" Marketing N/A N/A expression queue task.language IN worker.languages WQ2acd4c1a41ffadce5d1bac9e1ce2fa9f N/A expression friendly_name targets type == "support" Support N/A N/A expression queue task.language IN worker.languages WQe5eb317eb23500ade45087ea6522896c N/A expected_config_json N/A N/A json dumps expected_config_data sort_keys True indent 4 N/A N/A N/A self assertEqual N/A N/A config to_json expected_config_json N/A is_json N/A N/A self myjson N/A N/A N/A N/A N/A N/A N/A json loads myjson N/A N/A N/A ValueError N/A e N/A N/A e N/A False N/A True N/A N/A