Deleted
Added
test_python_basic.py (1041:9bdd46610ea9) | test_python_basic.py (1119:1df3773af3e4) |
---|---|
1from unit.control import TestControl 2 3 4class TestPythonBasic(TestControl): 5 prerequisites = ['python'] 6 7 conf_app = { 8 "app": { --- 163 unchanged lines hidden (view full) --- 172 'success', 173 self.conf_delete('applications/app'), 174 'delete app after listener', 175 ) 176 self.assertIn( 177 'error', self.conf_delete('applications/app'), 'delete app again' 178 ) 179 | 1from unit.control import TestControl 2 3 4class TestPythonBasic(TestControl): 5 prerequisites = ['python'] 6 7 conf_app = { 8 "app": { --- 163 unchanged lines hidden (view full) --- 172 'success', 173 self.conf_delete('applications/app'), 174 'delete app after listener', 175 ) 176 self.assertIn( 177 'error', self.conf_delete('applications/app'), 'delete app again' 178 ) 179 |
180 def test_python_delete_blocks(self): 181 self.conf(self.conf_basic) |
|
180 | 182 |
183 self.assertIn( 184 'success', 185 self.conf_delete('listeners'), 186 'listeners delete', 187 ) 188 189 self.assertIn( 190 'success', 191 self.conf_delete('applications'), 192 'applications delete', 193 ) 194 195 self.assertIn( 196 'success', 197 self.conf(self.conf_app, 'applications'), 198 'listeners restore', 199 ) 200 201 self.assertIn( 202 'success', 203 self.conf({"*:7080": {"pass": "applications/app"}}, 'listeners'), 204 'applications restore', 205 ) 206 207 |
|
181if __name__ == '__main__': 182 TestPythonBasic.main() | 208if __name__ == '__main__': 209 TestPythonBasic.main() |