Exemplo n.º 1
0
 def test_active(self):
     p = BasePool(10)
     assert not p.active
     p._state = p.RUN
     assert p.active
Exemplo n.º 2
0
 def test_active(self):
     p = BasePool(10)
     self.assertFalse(p.active)
     p._state = p.RUN
     self.assertTrue(p.active)
Exemplo n.º 3
0
 def test_active(self):
     p = BasePool(10)
     assert not p.active
     p._state = p.RUN
     assert p.active