support multi when picklise object

This commit is contained in:
Emmanuel Garette 2015-10-30 22:51:36 +01:00
parent 2cdd80b83d
commit 445516ce34

View file

@ -188,6 +188,18 @@ def test_diff_opt():
_diff_opts(o1, q)
def test_diff_opt_multi():
b = BoolOption('b', '', multi=True)
o = OptionDescription('o', '', [b])
o1 = OptionDescription('o1', '', [o])
a = dumps(o1)
q = loads(a)
_diff_opt(o1, q)
_diff_opt(o1.o, q.o)
_diff_opt(o1.o.b, q.o.b)
def test_only_optiondescription():
b = BoolOption('b', '')
b