diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-07-11 16:02:46 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-07-11 16:02:46 -0700 |
| commit | bf30f9c1d65053aba29ffff8d8d9a3810455a082 (patch) | |
| tree | 8bb1c0b01c14fcafdcfe208b6797cfe432269da8 /nova/tests | |
| parent | e30a9e1516e44d839ebd5b41586a32e99c47b8c9 (diff) | |
fixed all failed unit test cases
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_network.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/tests/test_network.py b/nova/tests/test_network.py index 6d5166019..30e1c0512 100644 --- a/nova/tests/test_network.py +++ b/nova/tests/test_network.py @@ -211,12 +211,13 @@ class VlanNetworkTestCase(test.TestCase): self.network.allocate_fixed_ip(None, 0, network, vpn=True) def test_allocate_fixed_ip(self): - self.mox.StubOutWithMock(db, 'fixed_ip_associate_pool') + self.mox.StubOutWithMock(db, 'fixed_ip_associate_by_address') self.mox.StubOutWithMock(db, 'fixed_ip_update') self.mox.StubOutWithMock(db, 'virtual_interface_get_by_instance_and_network') - db.fixed_ip_associate_pool(mox.IgnoreArg(), + db.fixed_ip_associate_by_address(mox.IgnoreArg(), + mox.IgnoreArg(), mox.IgnoreArg(), mox.IgnoreArg()).AndReturn('192.168.0.1') db.fixed_ip_update(mox.IgnoreArg(), |
