

def test_floating_ip_target_get_by_instance_with_preloaded_target(self):
    target_list = [{
        'name': 'name11',
        'id': 'id11',
        'instance_id': 'vm1',
    }, {
        'name': 'name21',
        'id': 'id21',
        'instance_id': 'vm2',
    }, {
        'name': 'name22',
        'id': 'id22',
        'instance_id': 'vm2',
    }]
    ret.mox.ReplayAll()
    ret = api.network.floating_ip_target_get_by_instance(self.request, 'vm2', target_list)
    self.assertEqual('id21', ret)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNeutronFloatingIpTests.test_floating_ip_target_get_by_instance_with_preloaded_target/VarMisuse@71/135 `self`->`ret`