コード例 #1
0
def test_progressBar_stderr():
    '''
  Progress bar utility test
  '''
    pbar = makeProgressBar('stderr', 100)
    assert pbar is not None
    assert pbar.fd == sys.stderr
    pbar.finish()
コード例 #2
0
def test_progressBar_none():
    '''
  Progress bar utility test
  '''
    pbar = makeProgressBar('none', 100)
    assert pbar is None