Beispiel #1
0
 def test_progress_raise(self):
     assert log.progress(50, 0, 'foo') is None
Beispiel #2
0
 def test_progress(self, mock_stdout):
     log.progress(50, 100, 'foo')
     mock_stdout.write.assert_called_once_with(
         '\rfoo: [####################                    ] 50%')
     mock_stdout.flush.assert_called_once_with()