support multi when picklise object
This commit is contained in:
parent
2cdd80b83d
commit
445516ce34
|
@ -188,6 +188,18 @@ def test_diff_opt():
|
||||||
_diff_opts(o1, q)
|
_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():
|
def test_only_optiondescription():
|
||||||
b = BoolOption('b', '')
|
b = BoolOption('b', '')
|
||||||
b
|
b
|
||||||
|
|
Loading…
Reference in New Issue