Tests: JSON array allowed.
This commit is contained in:
@@ -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] != '/':
|
||||||
|
|||||||
Reference in New Issue
Block a user