Revision 0a62912d kamaki/clients/compute/test.py

b/kamaki/clients/compute/test.py
227 227
    def test_images_put(self):
228 228
        self._test_put('images')
229 229

  
230
    @patch('%s.get' % rest_pkg, return_value=FR())
231
    def test_floating_ip_pools_get(self, get):
232
        for args in product(
233
                ('tenant1', 'tenant2'),
234
                (200, 204),
235
                ({}, {'k': 'v'})):
236
            tenant_id, success, kwargs = args
237
            r = self.client.floating_ip_pools_get(tenant_id, success, **kwargs)
238
            self.assertTrue(isinstance(r, FR))
239
            self.assertEqual(get.mock_calls[-1], call(
240
                '/%s/os-floating-ip-pools' % tenant_id,
241
                success=success, **kwargs))
242

  
230 243

  
231 244
class ComputeClient(TestCase):
232 245

  

Also available in: Unified diff