#NEWLINE# def test_list_active_sync_routers_on_hosting_devices_cfg_agent_admin_down( self ) : #NEWLINE# #INDENT# def assert_function( r1 , r2 , r3 , r4 , r5 , hd1_id , hd2_id , hd3 , template_id , agent_dict ) : #NEWLINE# #INDENT# agent_id = agent_dict [ device_manager_test_support . L3_CFG_HOST_A ] [ 'id' ] #NEWLINE# self . _update ( 'agents' , agent_id , { #NEWLINE# #INDENT# 'agent' : { #NEWLINE# #INDENT# 'admin_state_up' : False , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# r_set = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _verify_hosting ( agent_dict , r_set , device_manager_test_support . L3_CFG_HOST_A ) #NEWLINE# r_set = { r4 [ 'id' ] , r5 [ 'id' ] } #NEWLINE# self . _verify_hosting ( agent_dict , r_set , device_manager_test_support . L3_CFG_HOST_B ) #NEWLINE# #UNINDENT# self . _test_list_active_sync_routers_on_hosting_devices ( assert_function )