summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_basic.py
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-08-22 21:33:54 +0300
committerAndrei Belov <defan@nginx.com>2019-08-22 21:33:54 +0300
commita07c4d30a64f781f93730576b5dced32422a9935 (patch)
tree06ebfaa66845a057b8069014c5379b2dcfc80861 /test/test_python_basic.py
parent8a579acddeae0c0106e15d82aa7220ac01deba84 (diff)
parentc47af243b0e805376c4ec908f21e07dc811b33f0 (diff)
downloadunit-a07c4d30a64f781f93730576b5dced32422a9935.tar.gz
unit-a07c4d30a64f781f93730576b5dced32422a9935.tar.bz2
Merged with the default branch.1.10.0-1
Diffstat (limited to 'test/test_python_basic.py')
-rw-r--r--test/test_python_basic.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/test_python_basic.py b/test/test_python_basic.py
index 9987e886..e63158e5 100644
--- a/test/test_python_basic.py
+++ b/test/test_python_basic.py
@@ -177,6 +177,33 @@ class TestPythonBasic(TestControl):
'error', self.conf_delete('applications/app'), 'delete app again'
)
+ def test_python_delete_blocks(self):
+ self.conf(self.conf_basic)
+
+ self.assertIn(
+ 'success',
+ self.conf_delete('listeners'),
+ 'listeners delete',
+ )
+
+ self.assertIn(
+ 'success',
+ self.conf_delete('applications'),
+ 'applications delete',
+ )
+
+ self.assertIn(
+ 'success',
+ self.conf(self.conf_app, 'applications'),
+ 'listeners restore',
+ )
+
+ self.assertIn(
+ 'success',
+ self.conf({"*:7081": {"pass": "applications/app"}}, 'listeners'),
+ 'applications restore',
+ )
+
if __name__ == '__main__':
TestPythonBasic.main()