コード例 #1
0
 def test_active(self):
     p = BasePool(10)
     assert not p.active
     p._state = p.RUN
     assert p.active
コード例 #2
0
ファイル: __init__.py プロジェクト: crankycoder/zamboni-lib
 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