예제 #1
0
    def test_pool_delete(self):
        with mock.patch.object(self.transport, 'send',
                               autospec=True) as send_method:
            resp = response.Response(None, None)
            send_method.return_value = resp

            req = request.Request()
            core.pool_delete(self.transport, req, 'test_pool')
예제 #2
0
 def delete(self):
     req, trans = self.client._request_and_transport()
     core.pool_delete(trans, req, self.name)
예제 #3
0
 def delete(self):
     req, trans = self.client._request_and_transport()
     core.pool_delete(trans, req, self.name)