Esempio n. 1
0
    def test_map_by_args(self, simple_pool: SimplePool):
        TestSimplePool._initial()
        simple_pool.initial()
        simple_pool.map_by_args(function=target_function_for_map,
                                args_iter=Test_Function_Multiple_Args)
        TestSimplePool._chk_map_record()

        _results = simple_pool.get_result()
        TestSimplePool.chk_results(
            results=_results, expected_size=len(Test_Function_Multiple_Args))
Esempio n. 2
0
 def test_map_by_args(self, thread_pool: SimplePool):
     TestSimplePool._initial()
     thread_pool.initial()
     thread_pool.map_by_args(function=map_target_fun,
                             args_iter=Test_Function_Multiple_Args)
     TestSimplePool._chk_map_record()