'Test L{ftp.IReadFile}: the implementation should have a send method
returning a C{Deferred} which fires when all the data has been sent
to the consumer, and the data should be correctly send to the consumer.'

def test_read(self):

    content = 'wobble\n'
    consumer = TestConsumer()
    def cbGet(reader):
        return reader.send(consumer).addCallback(cbSend)
    def cbSend(res):
        self.assertEqual(''.join(consumer.buffer), content)
    return self.getFileReader(content).addCallback(cbGet)
