(self)
| 222 | assert 'some_key6' in x |
| 223 | |
| 224 | def test_election(self): |
| 225 | consumer = Consumer(self.app) |
| 226 | panel = self.create_panel(consumer=consumer) |
| 227 | consumer.gossip = Mock() |
| 228 | panel.handle( |
| 229 | 'election', {'id': 'id', 'topic': 'topic', 'action': 'action'}, |
| 230 | ) |
| 231 | consumer.gossip.election.assert_called_with('id', 'topic', 'action') |
| 232 | |
| 233 | def test_election__no_gossip(self): |
| 234 | consumer = Mock(name='consumer') |
nothing calls this directly
no test coverage detected