diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-26 17:35:32 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-26 17:35:32 +0300 |
commit | 2ceee3471e62946d0915208f1417ac7b9450ed0e (patch) | |
tree | 43367a65724bef6bc02831373635e0c418478bda /test/unit/control.py | |
parent | bc4a1d86b940ee998d8f9477f32a6452337eb3b3 (diff) | |
download | unit-2ceee3471e62946d0915208f1417ac7b9450ed0e.tar.gz unit-2ceee3471e62946d0915208f1417ac7b9450ed0e.tar.bz2 |
Tests: TestControl.conf_post() introduced.
Diffstat (limited to '')
-rw-r--r-- | test/unit/control.py | 4 |
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, |