test_python_procman.py (1025:3469f5185562) test_python_procman.py (1064:75a64629661f)
1import re
2import time
3import subprocess
4import unittest
5from unit.applications.lang.python import TestApplicationPython
6
7
8class TestPythonProcman(TestApplicationPython):

--- 119 unchanged lines hidden (view full) ---

128 pids = self.pids_for_process()
129 self.assertEqual(len(pids), 4, 'prefork 4')
130
131 self.get()
132 self.assertSetEqual(self.pids_for_process(), pids, 'prefork still 4')
133
134 self.stop_all()
135
1import re
2import time
3import subprocess
4import unittest
5from unit.applications.lang.python import TestApplicationPython
6
7
8class TestPythonProcman(TestApplicationPython):

--- 119 unchanged lines hidden (view full) ---

128 pids = self.pids_for_process()
129 self.assertEqual(len(pids), 4, 'prefork 4')
130
131 self.get()
132 self.assertSetEqual(self.pids_for_process(), pids, 'prefork still 4')
133
134 self.stop_all()
135
136 @unittest.expectedFailure
136 @unittest.skip('not yet')
137 def test_python_prefork_same_processes(self):
138 self.conf('2', 'applications/' + self.app_name + '/processes')
139
140 pids = self.pids_for_process()
141
142 self.conf('4', 'applications/' + self.app_name + '/processes')
143
144 pids_new = self.pids_for_process()

--- 138 unchanged lines hidden ---
137 def test_python_prefork_same_processes(self):
138 self.conf('2', 'applications/' + self.app_name + '/processes')
139
140 pids = self.pids_for_process()
141
142 self.conf('4', 'applications/' + self.app_name + '/processes')
143
144 pids_new = self.pids_for_process()

--- 138 unchanged lines hidden ---