

def test_floating_ip_pools_list(self):
    pool_names = ['pool1', 'pool2']
    pools = [floating_ip_pools.FloatingIPPool(None, {
        'name': pool,
    }) for pool in pool_names]
    novaclient = self.stub_novaclient()
    novaclient.floating_ip_pools = self.mox.CreateMockAnything()
    novaclient.floating_ip_pools.list().AndReturn(pools)
    self.mox.ReplayAll()
    ret = api.network.floating_ip_pools_list(self.request)
    self.assertEqual(pool, [p.name for p in ret])

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNovaFloatingIpTests.test_floating_ip_pools_list/VarMisuse@100/141 `pool_names`->`pool`