Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/l/o/longtask-0.1.1/longtask/tests.py   longtask(Download)
        self.MockStorage.load = Mock(return_value={})
        self.MockTask.storage_class = self.MockStorage
        self.mock_task = self.MockTask(commandline=False, quiet=True)
 
    def test_run(self):
    def test_continue(self):
        self.mock_task = self.MockTask(commandline=False, quiet=True, continue_task=True)
        first_run = self.mock_task.get_items_len() / 2
        self.mock_task.processed = first_run
 
        })
 
        self.mock_task = self.MockTask(commandline=False, quiet=True, continue_task=True)
 
        self.assertEqual(self.mock_task.processed, 1)
    def test_rerun_errors(self):
        self.mock_task = self.MockTask(commandline=False, quiet=True, continue_task=True, rerun_errors=True)
        self.mock_task.errored_items = set([0])
        self.mock_task.processed = self.mock_task.get_items_len()
 

src/r/u/runpack-0.13.0/tests/component/task/test_derived.py   runpack(Download)
    def setUp(self):
        self.MockTask = self._make_mock_task_class()
        self.task = self.MockTask('task', meta_module=None)
 
    def test_invoke(self):