'Test to verify bug 855030 doesn\'t resurface.
Mekes sure _rpc_allocate_fixed_ip returns a value so the call
returns properly and the greenpool completes.'

def test_rpc_allocate(self):

    address = '10.10.10.10'
    def fake_allocate(*args, **kwargs):
        return address
    def fake_network_get(*args, **kwargs):
        return test_network.fake_network
    self.stubs.Set(self.rpc_fixed, 'allocate_fixed_ip', fake_allocate)
    self.stubs.Set(self.rpc_fixed.db, 'network_get', fake_network_get)
    rval = self.rpc_fixed._rpc_allocate_fixed_ip(self.context, 'fake_instance', 'fake_network')
    self.assertEqual(address, rval)
