

def test__check_config_agents_stops_monitoring_non_existent_cfg_agents(self):
    self.plugin._cfg_agent_statuses['non_existent_agent_id'] = {
        'timestamp': 'faketime',
    }
    with mock.patch('networking_cisco.plugins.cisco.db.scheduler.cfg_agentschedulers_db.timeutils.is_older_than') as is_older_mock:
        is_older_mock.side_effect = [True]
        self.plugin._check_config_agents()
        is_older_mock.assertEqual(0, len(self.plugin._cfg_agent_statuses))

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_hosting_device_cfg_agent_scheduler.py HostingDeviceConfigAgentSchedulerTestCase.test__check_config_agents_stops_monitoring_non_existent_cfg_agents/VarMisuse@56/128 `self`->`is_older_mock`