summaryrefslogtreecommitdiff
path: root/novaclient/tests/unit/v2/test_floating_ip_pools.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/unit/v2/test_floating_ip_pools.py')
-rw-r--r--novaclient/tests/unit/v2/test_floating_ip_pools.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/novaclient/tests/unit/v2/test_floating_ip_pools.py b/novaclient/tests/unit/v2/test_floating_ip_pools.py
new file mode 100644
index 0000000..a138fc2
--- /dev/null
+++ b/novaclient/tests/unit/v2/test_floating_ip_pools.py
@@ -0,0 +1,32 @@
1# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
2#
3# All Rights Reserved.
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may
6# not use this file except in compliance with the License. You may obtain
7# a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations
15# under the License.
16
17from novaclient.tests.unit.fixture_data import client
18from novaclient.tests.unit.fixture_data import floatingips as data
19from novaclient.tests.unit import utils
20from novaclient.v2 import floating_ip_pools
21
22
23class TestFloatingIPPools(utils.FixturedTestCase):
24
25 client_fixture_class = client.V1
26 data_fixture_class = data.PoolsFixture
27
28 def test_list_floating_ips(self):
29 fl = self.cs.floating_ip_pools.list()
30 self.assert_called('GET', '/os-floating-ip-pools')
31 for f in fl:
32 self.assertIsInstance(f, floating_ip_pools.FloatingIPPool)