コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    def test_returns_progress_log_displayer_by_default(self):
        args = FakeArguments(quiet=False, brief=False)

        displayer = get_progress_displayer(args)

        self.assertIsInstance(displayer, ProgressLogDisplayer)
コード例 #4
0
    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)
コード例 #5
0
    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)
コード例 #6
0
    def test_returns_progress_log_displayer_by_default(self):
        args = FakeArguments(quiet=False, brief=False)

        displayer = get_progress_displayer(args)

        self.assertIsInstance(displayer, ProgressLogDisplayer)