def test_channel_close_and_then_receive_error(self):
-> channel = self.gw.remote_exec('raise ValueError')
py.test.raises(channel.RemoteError, channel.receive)