def test_transform(self):
        new_route = self.route.transform('transformed')
        assert new_route != self.route
        assert new_route.route['transform'] == 'transformed'
Choose an agent from candidates based on a specific policy.
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestRouter.test_transform--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/scheduler/l3_agent_scheduler.py/L3Scheduler._choose_router_agent