summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-04-26 17:35:32 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-04-26 17:35:32 +0300
commit2ceee3471e62946d0915208f1417ac7b9450ed0e (patch)
tree43367a65724bef6bc02831373635e0c418478bda
parentbc4a1d86b940ee998d8f9477f32a6452337eb3b3 (diff)
downloadunit-2ceee3471e62946d0915208f1417ac7b9450ed0e.tar.gz
unit-2ceee3471e62946d0915208f1417ac7b9450ed0e.tar.bz2
Tests: TestControl.conf_post() introduced.
-rw-r--r--test/unit/control.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/control.py b/test/unit/control.py
index 0899d34f..0b344ed5 100644
--- a/test/unit/control.py
+++ b/test/unit/control.py
@@ -44,6 +44,10 @@ class TestControl(TestHTTP):
def conf_delete(self, url):
return self.delete(**self._get_args(url))['body']
+ @args_handler
+ def conf_post(self, conf, url):
+ return self.post(**self._get_args(url, conf))['body']
+
def _get_args(self, url, conf=None):
args = {
'url': url,