

def test_floating_ip_target_list(self):
    servers = server.servers.list()
    novaclient = self.stub_novaclient()
    novaclient.servers = self.mox.CreateMockAnything()
    novaclient.servers.list().AndReturn(servers)
    self.mox.ReplayAll()
    targets = api.network.floating_ip_target_list(self.request)
    for (target, server) in zip(targets, servers):
        self.assertEqual(server.id, target.id)
        self.assertEqual(('%s (%s)' % (server.name, server.id)), target.name)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNovaFloatingIpTests.test_floating_ip_target_list/VarMisuse@12/17 `self`->`server`