From 445516ce34d4885e4851496fa6554be8d54406d2 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 30 Oct 2015 22:51:36 +0100 Subject: [PATCH] support multi when picklise object --- test/test_state.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_state.py b/test/test_state.py index 302a58c..52fb69b 100644 --- a/test/test_state.py +++ b/test/test_state.py @@ -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