#NEWLINE# def test_exclude_dvr_agents_for_ha_candidates( self ) : #NEWLINE# #INDENT# 'Test dvr agents configured with "dvr" only, as opposed to "dvr_snat",\n        are excluded.\n        This test case tests that when get_number_of_agents_for_scheduling\n        is called, it does not count dvr only agents.\n        ' #NEWLINE# helpers . register_l3_agent ( 'host_3' , n_const . L3_AGENT_MODE_DVR ) #NEWLINE# num_ha_candidates = self . plugin . get_number_of_agents_for_scheduling ( self . admin_ctx ) #NEWLINE# self . assertEqual ( 2 , num_ha_candidates )