def test_include_dvr_snat_agents_for_ha_candidates(self):
        # Test setup registers two l3 agents.
        # Register another l3 agent with dvr mode and assert that
        # get_number_of_ha_agent_candidates return 2.
        helpers.register_l3_agent('host_3', n_const.L3_AGENT_MODE_DVR_SNAT)
        num_ha_candidates = self.plugin.get_number_of_agents_for_scheduling(
            self.admin_ctx)
        self.assertEqual(3, num_ha_candidates)
Test dvr agents configured with "dvr_snat" are excluded.
dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/db/test_l3_hamode_db.py/L3HATestCase.test_include_dvr_snat_agents_for_ha_candidates