def test_returns_no_progress_displayer_if_quiet_is_set(self): args = FakeArguments(quiet=True, brief=False) displayer = get_progress_displayer(args) self.assertIsInstance(displayer, NoProgressDisplayer)
def test_returns_progress_bar_displayer_if_brief_is_set(self): args = FakeArguments(quiet=False, brief=True) displayer = get_progress_displayer(args) self.assertIsInstance(displayer, ProgressBarDisplayer)
def test_returns_progress_log_displayer_by_default(self): args = FakeArguments(quiet=False, brief=False) displayer = get_progress_displayer(args) self.assertIsInstance(displayer, ProgressLogDisplayer)