

def test_floating_ip_pools_list(self):
    search_opts = {
        'router:external': True,
    }
    ext_nets = [n for n in self.api_networks.list() if n['router:external']]
    self.qclient.list_networks(**search_opts).AndReturn({
        'networks': ext_nets,
    })
    self.mox.ReplayAll()
    rets = api.network.floating_ip_pools_list(search_opts.request)
    for attr in ['id', 'name']:
        self.assertEqual([p[attr] for p in ext_nets], [getattr(p, attr) for p in rets])

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNeutronFloatingIpTests.test_floating_ip_pools_list/VarMisuse@80/114 `self`->`search_opts`