config.reset() remove informations too

This commit is contained in:
2018-09-09 23:04:36 +02:00
parent 3d07a9e88f
commit 5b518bffea
2 changed files with 6 additions and 3 deletions

View File

@ -350,15 +350,19 @@ def test_config_reset():
assert not c.option('gc.gc2.bool').value.get()
assert not c.option('boolop').property.get()
assert not c.option('boolop').permissive.get()
assert not c.option('wantref').information.get('info', None)
#
c.option('gc.gc2.bool').value.set(True)
c.option('boolop').property.add('test')
c.option('float').permissive.set(frozenset(['test']))
c.option('wantref').information.set('info', 'info')
assert c.option('gc.gc2.bool').value.get()
assert c.option('boolop').property.get()
assert c.option('float').permissive.get()
assert c.option('wantref').information.get('info', None)
#
c.config.reset()
assert not c.option('gc.gc2.bool').value.get()
assert not c.option('boolop').property.get()
assert not c.option('float').permissive.get()
assert not c.option('wantref').information.get('info', None)