(self)
| 325 | assert 'some_key6' in x |
| 326 | |
| 327 | def test_election(self): |
| 328 | consumer = Consumer(self.app) |
| 329 | panel = self.create_panel(consumer=consumer) |
| 330 | consumer.gossip = Mock() |
| 331 | panel.handle( |
| 332 | 'election', {'id': 'id', 'topic': 'topic', 'action': 'action'}, |
| 333 | ) |
| 334 | consumer.gossip.election.assert_called_with('id', 'topic', 'action') |
| 335 | |
| 336 | def test_election__no_gossip(self): |
| 337 | consumer = Mock(name='consumer') |
nothing calls this directly
no test coverage detected