(self)
| 127 | return c |
| 128 | |
| 129 | def test_info(self): |
| 130 | c = self.NoopConsumer() |
| 131 | c.connection.info.return_value = {'foo': 'bar'} |
| 132 | c.controller.pool.info.return_value = [Mock(), Mock()] |
| 133 | info = c.controller.stats() |
| 134 | assert info['prefetch_count'] == 10 |
| 135 | assert info['broker'] |
| 136 | |
| 137 | def test_start_when_closed(self): |
| 138 | c = self.NoopConsumer() |
nothing calls this directly
no test coverage detected