From 2ceee3471e62946d0915208f1417ac7b9450ed0e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Fri, 26 Apr 2019 17:35:32 +0300 Subject: Tests: TestControl.conf_post() introduced. --- test/unit/control.py | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit