synchronise config_bag and context

This commit is contained in:
2018-09-06 23:06:56 +02:00
parent d61d1c2931
commit 4b0c142e3e
5 changed files with 46 additions and 48 deletions

View File

@ -291,9 +291,7 @@ def test_consistency_not_equal_masterslave_error_othermaster():
c = IPOption('c', '', multi=True)
d = NetmaskOption('d', '', multi=True)
od = MasterSlaves('a', '', [a, b])
#od.impl_set_group_type(groups.master)
od2 = MasterSlaves('c', '', [c, d])
#od2.impl_set_group_type(groups.master)
od3 = OptionDescription('b', '', [od, od2])
d.impl_add_consistency('ip_netmask', a)
raises(ConfigError, "Config(od2)")
@ -304,7 +302,6 @@ def test_consistency_not_equal_masterslaves_default():
b = IntOption('b', '', multi=True, default_multi=1)
od = MasterSlaves('a', '', [a, b])
od2 = OptionDescription('a', '', [od])
#od.impl_set_group_type(groups.master)
a.impl_add_consistency('not_equal', b)
api = Config(od2)
assert api.option('a.a').value.get() == []