'L{StdioClient._printProgressBar} prints a progress description,
including percent done, amount transferred, transfer rate, and time
remaining, all based the given start time, the given L{FileWrapper}\'s
progress information and the reactor\'s current time.'

def test_printProgressBarReporting(self):

    self.setKnownConsoleSize(10, 34)
    clock = self.client.reactor = Clock()
    wrapped = BytesIO('x')
    wrapped.name = 'sample'
    wrapper = cftp.FileWrapper(wrapped)
    wrapper.size = (1024 * 10)
    startTime = clock.seconds()
    clock.advance(2.0)
    wrapper.total += 4096
    self.client._printProgressBar(wrapper, startTime)
    if _PY3:
        result = "\rb'sample'    40%    4.0kB    2.0kBps    00:03    "
    else:
        result = '\rsample    40%    4.0kB    2.0kBps    00:03    '
    self.assertEqual(self.client.transport.value(), result)
