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')
def delete(self): req, trans = self.client._request_and_transport() core.pool_delete(trans, req, self.name)