From b2ca342902ec84b4415982be08d89c8bfe0ed431 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 20 Feb 2019 20:20:02 +0300 Subject: [PATCH] Tests: JSON array allowed. --- test/unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit.py b/test/unit.py index bd6128cc..2af3e8f6 100644 --- a/test/unit.py +++ b/test/unit.py @@ -433,7 +433,7 @@ class TestUnitControl(TestUnitHTTP): # TODO http client def conf(self, conf, path='/config'): - if isinstance(conf, dict): + if isinstance(conf, dict) or isinstance(conf, list): conf = json.dumps(conf) if path[:1] != '/':