def setUp(self): super(TestRunWsgiApp, self).setUp() self.worker_count = service._get_worker_count()
def setUp(self): super(TestRunRpcWorkers, self).setUp() self.worker_count = service._get_worker_count()
def test_get_workers(self): num_workers = service._get_worker_count() self.assertGreaterEqual(num_workers, 1) self.assertLessEqual(num_workers, processutils.get_worker_count())