예제 #1
0
 def test_active(self):
     p = BasePool(10)
     assert not p.active
     p._state = p.RUN
     assert p.active
예제 #2
0
 def test_active(self):
     p = BasePool(10)
     self.assertFalse(p.active)
     p._state = p.RUN
     self.assertTrue(p.active)
예제 #3
0
 def test_active(self):
     p = BasePool(10)
     assert not p.active
     p._state = p.RUN
     assert p.active