'Test produce/unproduce in receiving.'

def test_lineReceiverAsProducer(self):

    a = LineTester()
    t = proto_helpers.StringIOWithoutClosing()
    a.makeConnection(protocol.FileWrapper(t))
    a.dataReceived('produce\nhello    world\nunproduce\ngoodbye\n')
    self.assertEqual(a.received, ['produce', 'hello    world', 'unproduce', 'goodbye'])
