def test_active(self): p = BasePool(10) assert not p.active p._state = p.RUN assert p.active
def test_active(self): p = BasePool(10) self.assertFalse(p.active) p._state = p.RUN self.assertTrue(p.active)