Exemple #1
0
    def test_create_pool_size_none(self):
        from multiprocessing import cpu_count

        l = LiaisonConfig()
        l.pool_size = None
        _, pool_size = self.liaison.create_pool(l)
        self.assertTrue(pool_size == cpu_count())
Exemple #2
0
 def test_create_pool_size(self):
     l = LiaisonConfig()
     l.pool_size = 10
     _, pool_size = self.liaison.create_pool(l)
     self.assertTrue(pool_size == 10)