Fix test, nested lists are no longer converted to nested tuples

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Christian Heimes 2017-02-14 09:33:49 +01:00 committed by Martin Basti
parent 3cac0378e9
commit 2ff07b9580

View File

@ -257,7 +257,7 @@ class test_jsonserver(PluginTester):
assert unicode(e.error) == 'params[1] (aka options) must be a dict' assert unicode(e.error) == 'params[1] (aka options) must be a dict'
# Test with valid values: # Test with valid values:
args = (u'jdoe', ) args = [u'jdoe']
options = dict(givenname=u'John', sn='Doe') options = dict(givenname=u'John', sn='Doe')
d = dict(method=u'user_add', params=(args, options), id=18) d = dict(method=u'user_add', params=(args, options), id=18)
assert o.unmarshal(json.dumps(d)) == (u'user_add', args, options, 18) assert o.unmarshal(json.dumps(d)) == (u'user_add', args, options, 18)