Example #1
0
    def test_queue_get_stats(self):
        with mock.patch.object(self.transport, 'send',
                               autospec=True) as send_method:
            resp = response.Response(None, '{}')
            send_method.return_value = resp

            req = request.Request()
            result = core.queue_get_stats(self.transport, req, 'test')
            self.assertEqual(result, {})
Example #2
0
 def stats(self):
     req, trans = self.client._request_and_transport()
     return core.queue_get_stats(trans, req, self._name)
Example #3
0
 def stats(self):
     req, trans = self.client._request_and_transport()
     return core.queue_get_stats(trans, req, self._name)