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

            req = request.Request()
            core.queue_delete(self.transport, req, 'test')
            self.assertIn('queue_name', req.params)
예제 #2
0
 def delete(self):
     req, trans = self.client._request_and_transport()
     core.queue_delete(trans, req, self._name)
예제 #3
0
 def delete(self):
     req, trans = self.client._request_and_transport()
     core.queue_delete(trans, req, self._name)