

def progress(self, offset, whence):
    'Provide indication about the progress/length of the test run.\n\n        :param offset: Information about the number of tests remaining. If\n            whence is PROGRESS_CUR, then offset increases/decreases the\n            remaining test count. If whence is PROGRESS_SET, then offset\n            specifies exactly the remaining test count.\n        :param whence: One of PROGRESS_CUR, PROGRESS_SET, PROGRESS_PUSH,\n            PROGRESS_POP.\n        '
    if ((whence == PROGRESS_CUR) and (offset > (- 1))):
        prefix = self._progress_plus
        offset = _b(str(offset))
    elif (whence == PROGRESS_PUSH):
        prefix = self._empty_bytes
        offset = self._progress_push
    elif (whence == PROGRESS_POP):
        prefix = self._empty_bytes
        offset = self._progress_pop
    else:
        prefix = self._empty_bytes
        offset = _b(str(offset))
    self._stream.write((((self._progress_fmt + prefix) + offset) + self._bytes_eol))

dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/__init__.py TestProtocolClient.progress/original