'verify that a non available network is ignored.
self.nets2 (net_idx=2) is composed of self.nets3[0] and self.nets3[1]
Do not create a port on a non available network self.nets3[2].'

def test_allocate_for_instance_with_requested_non_available_network(self):

    requested_networks = objects.NetworkRequestList(objects=[objects.NetworkRequest(network_id=net['id']) for net in (self.nets3[0], self.nets3[2], self.nets3[1])])
    requested_networks[0].tag = 'foo'
    neutronapi.get_client(mox.IgnoreArg()).AndReturn(self.moxed_client)
    self._allocate_for_instance(net_idx=2, requested_networks=requested_networks)
    self.assertEqual(2, len(self._vifs_created))
    vifs_really_created = [vif for vif in self._vifs_created if vif.create.called]
    self.assertEqual(2, len(vifs_really_created))
    self.assertEqual([('foo', ('fakemac1/%s' % uuids.fake)), (None, ('fakemac3/%s' % uuids.fake))], [(vif.tag, vif.address) for vif in vifs_really_created])
