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, {})
def stats(self): req, trans = self.client._request_and_transport() return core.queue_get_stats(trans, req, self._name)