def testSendRecv(self):
        def sender(channel):
            for i in range(3):
                channel.send(i)
        
        def receiver(channel):
            while True:
                recvd.append(channel.receive())
        
        recvd = []
                
        test_channel = Channel()
        
        send_task = Tasklet.new(sender)(test_channel)
        recv_task = Tasklet.new(receiver)(test_channel)

        Tasklet.join(send_task)
        
        self.assertEquals([0,1,2], recvd)
        
        recv_task.kill()
test simple send and receive on a channel
dataset/ETHPy150Open concurrence/concurrence/test/testcore.py/TestChannel.testSendRecv