

def test_floating_ip_disassociate(self):
    server = api.nova.Server(self.servers.first(), self.request)
    floating_ip = self.api_floating_ips.first()
    novaclient = server.stub_novaclient()
    novaclient.servers = self.mox.CreateMockAnything()
    novaclient.floating_ips = self.mox.CreateMockAnything()
    novaclient.servers.get(server.id).AndReturn(server)
    novaclient.floating_ips.get(floating_ip.id).AndReturn(floating_ip)
    novaclient.servers.remove_floating_ip(server.id, floating_ip.ip).AndReturn(server)
    self.mox.ReplayAll()
    api.network.floating_ip_disassociate(self.request, floating_ip.id)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNovaFloatingIpTests.test_floating_ip_disassociate/VarMisuse@43/55 `self`->`server`