key is now always path and change opt by path dictionary storage
[tiramisu.git] / test / test_option_setting.py
index 979a79e..70332d2 100644 (file)
@@ -333,15 +333,15 @@ def test_reset_properties():
     setting.reset()
     assert setting._p_.get_properties(cfg) == {}
     setting[option].append('test')
-    assert setting._p_.get_properties(cfg) == {option: set(('test',))}
+    assert setting._p_.get_properties(cfg) == {'gc.dummy': set(('test',))}
     setting.reset()
-    assert setting._p_.get_properties(cfg) == {option: set(('test',))}
+    assert setting._p_.get_properties(cfg) == {'gc.dummy': set(('test',))}
     setting.append('frozen')
-    assert setting._p_.get_properties(cfg) == {None: set(('frozen', 'expire', 'validator')), option: set(('test',))}
+    assert setting._p_.get_properties(cfg) == {None: set(('frozen', 'expire', 'validator')), 'gc.dummy': set(('test',))}
     setting.reset(option)
     assert setting._p_.get_properties(cfg) == {None: set(('frozen', 'expire', 'validator'))}
     setting[option].append('test')
-    assert setting._p_.get_properties(cfg) == {None: set(('frozen', 'expire', 'validator')), option: set(('test',))}
+    assert setting._p_.get_properties(cfg) == {None: set(('frozen', 'expire', 'validator')), 'gc.dummy': set(('test',))}
     setting.reset(all_properties=True)
     assert setting._p_.get_properties(cfg) == {}
     raises(ValueError, 'setting.reset(all_properties=True, opt=option)')