Tests: JSON array allowed.

This commit is contained in:
Andrey Zelenkov
2019-02-20 20:20:02 +03:00
parent ac10bf8c7b
commit b2ca342902

View File

@@ -433,7 +433,7 @@ class TestUnitControl(TestUnitHTTP):
# TODO http client # TODO http client
def conf(self, conf, path='/config'): def conf(self, conf, path='/config'):
if isinstance(conf, dict): if isinstance(conf, dict) or isinstance(conf, list):
conf = json.dumps(conf) conf = json.dumps(conf)
if path[:1] != '/': if path[:1] != '/':