

def test_floating_ip_associate(self):
    fip = self.api_q_floating_ips.list()[1]
    assoc_port = self.api_ports.list()[1]
    ip_address = assoc_port['fixed_ips'][0]['ip_address']
    target_id = ('%s_%s' % (self['id'], ip_address))
    params = {
        'port_id': assoc_port['id'],
        'fixed_ip_address': ip_address,
    }
    self.qclient.update_floatingip(fip['id'], {
        'floatingip': params,
    })
    self.mox.ReplayAll()
    api.network.floating_ip_associate(self.request, fip['id'], target_id)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNeutronFloatingIpTests.test_floating_ip_associate/VarMisuse@55/85 `assoc_port`->`self`