taucmdr.tests.test_progress module

Tests for progress.py.

class taucmdr.tests.test_progress.ProgressIndicatorTest(methodName='runTest')[source]

Bases: TestCase

Tests for progress.ProgressIndicator.

_classSetupFailed = False
_class_cleanups = []
_draw(width, load, count)[source]

Return the download progress as would be drawn on a terminal width characters wide.

static _output(mode, isatty)[source]

Return progress bar expected output.

Parameters:
  • mode (str) – Value of __TAUCMDR_PROGRESS_BARS__, or None.

  • isatty (bool) – Whether stdout is a terminal.

test_disabled_draws_nothing()[source]
test_disabled_keeps_no_phases()[source]
test_full_without_terminal()[source]
test_line_width()[source]
test_no_terminal_defaults_to_disabled()[source]
test_terminal_defaults_to_full()[source]