(self)
| 572 | self.buffer.get_nowait() |
| 573 | |
| 574 | def test_reset_pidbox_node(self): |
| 575 | c = self.NoopConsumer() |
| 576 | con = find_step(c, consumer.Control).box |
| 577 | con.node = Mock() |
| 578 | chan = con.node.channel = Mock() |
| 579 | chan.close.side_effect = socket.error('foo') |
| 580 | c.connection_errors = (socket.error,) |
| 581 | con.reset() |
| 582 | chan.close.assert_called_with() |
| 583 | |
| 584 | def test_reset_pidbox_node_green(self): |
| 585 | c = self.NoopConsumer(pool=Mock(is_green=True)) |
nothing calls this directly
no test coverage detected