Exemple #1
0
 def test__create_Should_CallAndReturnExpected_When_NoProgressBar(self, create_status_lines_patch, *patches):
     term = Terminal(10, create=False)
     result = term.create(10)
     self.assertEqual(result, create_status_lines_patch.return_value)
Exemple #2
0
 def test__create_Should_CallAndReturnExpected_When_ProgressBar(self, create_progress_bars_patch, *patches):
     term = Terminal(10, create=False, config={'progress_bar': {'total': 100, 'count_regex': '--regex--'}})
     result = term.create(10)
     self.assertEqual(result, create_progress_bars_patch.return_value)