#NEWLINE# def test_get_l3_agent_candidates_dvr_snat( self ) : #NEWLINE# #INDENT# self . _register_l3_dvr_agents ( ) #NEWLINE# router = self . _make_router ( self . fmt , tenant_id = str ( uuid . uuid4 ( ) ) , name = 'r2' ) #NEWLINE# router [ 'external_gateway_info' ] = None #NEWLINE# router [ 'id' ] = str ( uuid . uuid4 ( ) ) #NEWLINE# router [ 'distributed' ] = True #NEWLINE# agent_list = [ self . l3_dvr_snat_agent ] #NEWLINE# self . get_subnet_ids_on_router = mock . Mock ( ) #NEWLINE# self . _check_dvr_serviceable_ports_on_host = mock . Mock ( return_value = True ) #NEWLINE# self . _check_get_l3_agent_candidates ( router , agent_list , HOST_DVR_SNAT )